在Intellij中使用springloaded重新加载类后,断点不起作用 [英] Breakpoints does not work after reloading classes with springloaded in Intellij

查看:236
本文介绍了在Intellij中使用springloaded重新加载类后,断点不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Intellij
中的应用程序配置运行我的java应用程序,我正在使用这些vm选项来使用springloaded:
-javaagent:... /springloaded-1.2.0.RELEASE.jar -noverify

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

使用springloaded重新加载的类工作正常。

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.

推荐答案

此解决方案有效:


  • 使用远程调试选项以运行模式(而不是调试模式)启动应用程序:
    -agentlib:jdwp = transport = dt_socket,server = y,suspend = n,address = 5005

从intellij开始远程调试。

Start remote debug from intellij.

但也许有更好的解决方案?

But perhaps there's a better solution?

这篇关于在Intellij中使用springloaded重新加载类后,断点不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆