Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Spring Boot application with Eclipse?

My Spring Boot webapp is running just fine, and I'd like to debug it through Eclipse.

So when launching my Remote Java Application debugger, which port should I listen to? And is there a setting on my webapp I have to set to enable debugging?

like image 741
JeffLL Avatar asked Jun 09 '14 05:06

JeffLL


People also ask

How do I debug a spring boot in Eclipse?

Remote Debug Spring Boot applications with Eclipse For Eclipse you also first have to import the project and can then go to Run -> Debug Configurations: Select Remote Java Application (this might also have a different name in previous Eclipse versions) in the list.

How do I debug a spring boot application?

To debug your Spring Boot-based application on OpenShift remotely, you must set the JAVA_DEBUG environment variable inside the container to true and configure port forwarding so that you can connect to your application from a remote debugger. Your application running on OpenShift.

How do I debug a spring boot in terminal?

IntelliJ. IntelliJ offers first-class support for Spring and Spring Boot applications. Debugging is as simple as navigating to the class with the main method, right-clicking the triangle icon, and choosing Debug. Finally, IntelliJ makes it very easy to connect to any running process and debug it.


1 Answers

Why don't you just right click on the main() method and choose "Debug As... Java Application"?

like image 62
Dave Syer Avatar answered Sep 22 '22 13:09

Dave Syer