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?
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.
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.
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.
Why don't you just right click on the main()
method and choose "Debug As... Java Application"
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With