How to debug a Java maven spring-boot app in vs code? : <p>I was able to debug a simple Java hello world. The first step was to "compile" with <code>javac -g</code>. I looked up how I would acomplish the same with maven and found <a href="http://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-debug.html" rel="noreferrer">http://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-debug.html</a>, but those instructions are for running the application and wait for a debugger to connect.</p>

<p>I also tried to use <code>target/classes</code> for <code>classpath</code> in  <code>launch.json</code>. The debugger complains that it cannot find a file in the root directory <code>/</code>, but it runs. Althought the debugger is running, the application is not responding to HTTP requests.</p>

<p>Is there a <code>mvn</code> command to compile the application with <code>javac -g</code> and produce a <code>.class</code> the debugger is able to run successfully?</p>
