Spring Boot DevTools Remote Debugging not Working

Answered

Hello, 
I am a new user and am having a little trouble getting remote debugging working with Spring Boot DevTools.  

I followed the guide from Spring (https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html#using-boot-devtools-remote)

When I set it up in IntelliJ, I first get a warning in the configuration: "Warning: Class 'org.springframework.boot.devtools.RemoteSpringApplication' not found in module 'reload'" as seen here:

I have the spring-boot-devtools dependency in my pom.xml:

Even with the warning, it works when I simply run this configuration (not debug). I am able to perform a live reload on the remote application.  

However, when I try to debug, I get a ClassNotFoundException for org.springframework.boot.devtools.RemoteSpringApplication.


My docker deployment configuration has the recommended (https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html#using-boot-devtools-remote-debugtunnel) entrypoint: java -Djava.security.egd=file:/dev/./urandom -Xdebug -Xrunjdwp:server=y,transport=dt_socket,suspend=n -jar /app.jar

Any help or guidance is greatly appreciated!  

Best regards,

Jared

3 comments

Could you please ZIP your project and create a new issue in our tracker? https://youtrack.jetbrains.com/issues/IDEA Thanks.

0

Was there any update on the issue?

0

You should add configuration as "Application" not "Spring Boot" 



1

Please sign in to leave a comment.