Unable to debug in Java with eclipse

后端 未结 11 1173
情话喂你
情话喂你 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:40

    I was seeing an error while using the -X format:

    java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n myapp
    

    The error went away when I switched to the newer format:

    java -agentlib:jdwp=transport=dt_socket,server=y,address=4000,suspend=n myapp
    

提交回复
热议问题