Unable to debug in Java with eclipse

后端 未结 11 1171
情话喂你
情话喂你 2020-12-03 06:55

I am trying to debug a simple Java application on my machine using Eclipse as an IDE. When I try to debug the application by entering the Debug Perspective, I set a breakpoi

11条回答
  •  醉酒成梦
    2020-12-03 07:36

    Had same problem, but the solution was to run the application with -server=y option and not with -server=n.

    Before:

    java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:5005 
    

    After:

    java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:5005
    

提交回复
热议问题