I was able to debug a simple Java hello world. The first step was to "compile" with javac -g
. I looked up how I would acomplish the same with maven and found http://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-debug.html, but those instructions are for running the application and wait for a debugger to connect.
I also tried to use target/classes
for classpath
in launch.json
. The debugger complains that it cannot find a file in the root directory /
, but it runs. Althought the debugger is running, the application is not responding to HTTP requests.
Is there a mvn
command to compile the application with javac -g
and produce a .class
the debugger is able to run successfully?