Breakpoints does not work after reloading classes with springloaded in Intellij

老子叫甜甜 提交于 2019-12-10 11:12:19

问题


I'm running my java application with an "Application" configuration in Intellij and I'm using these vm options for using springloaded: -javaagent:.../springloaded-1.2.0.RELEASE.jar -noverify

The class reloading with springloaded works fine.

But the debugger won't stop any more at the breakpoints in the reloaded classes. Breakpoints in other classes still work.


回答1:


This solution works:

  • start the application in run mode (instead of debug mode) with the remote debug option: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

  • Start remote debug from intellij.

But perhaps there's a better solution?



来源:https://stackoverflow.com/questions/25353602/breakpoints-does-not-work-after-reloading-classes-with-springloaded-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!