IntelliJ IDEA 13 debugger don't stop on breakpoint in java for maven project

后端 未结 3 1901
野趣味
野趣味 2021-02-02 12:58

I have a breakpoint on a line where is the System.out.println(\"test\") command. I believe that the command is reached by execution because I see the printed string

3条回答
  •  孤独总比滥情好
    2021-02-02 13:50

    The exec goal will execute your program in a separate process, so the debugger may not be connecting to the right JVM. Instead try using the java goal, e.g.:

    mvnDebug install exec:java 
    

    This will execute your program in the same process and hopefully you will hit your breakpoint.

提交回复
热议问题