延迟断点:当加载的类(Deferred breakpoints: when are classes

2019-09-17 19:11发布

我想调试与行家: jdb -attach 8000 ,使用后mvnDebug
我试图把断点,但得到:

main[1] stop in DeployMojo.DeployMojo
Deferring breakpoint DeployMojo.DeployMojo.
It will be set after the class is loaded.
main[1] stop at Dependency:66
Deferring breakpoint Dependency:66.
It will be set after the class is loaded.

当我运行,断点不叫。 我有源(用Maven的命令产生的),但我可以让他们如何提供给调试器?
是否有一个类加载器,我可以把一个断点?

Answer 1:

这可能会发生,因为你的类名是错误的,或者因为您省略了包。 如果类Dependency是包com.my.package ,然后在课堂上打破com.my.package.Dependency而不是Dependency



文章来源: Deferred breakpoints: when are classes loaded