我不能使用断点进行调试

时间:2021-04-20 20:43:55

I'm getting a strange error message in SpringSource Tool Suite (eclipse) when I try to place breakpoints and debug my project, so in this case, when I start Tomcat for debug it shows me the following error message: "Unable to install breakpoint in bus.GenBUS$$EnhancerByCGLIB$$749137d3 due to missing line number attributes. Modify compiler options to generate line number attributes. Reason : Absent Line Number Information"

当我试图放置断点并调试我的项目时,我在SpringSource Tool Suite (eclipse)中收到了一条奇怪的错误消息,因此在本例中,当我启动Tomcat进行调试时,它向我显示了以下错误消息:“无法在总线中安装断点。”GenBUS$ enhance cerbycglib $749137d3由于缺少行号属性。修改编译器选项以生成行号属性。原因:缺少行号信息

But I have already controlled and everything is fine in Preferences -> Java -> Compiler section (add line number attr... is checked). My project is Spring MVC project... Any suggestions ?

但是我已经控制好了,并且在首选项中一切都没问题——> Java ->编译器部分(添加行号attr…)检查)。我的项目是Spring MVC项目……有什么建议吗?

1 个解决方案

#1


42  

Ignore that. Even if you get that message, the breakpoint is still triggered. This class is temporal, generated by CGLIB. But it still invokes your class, which has the breakpoint.

忽略这一点。即使您得到了该消息,断点仍然被触发。这个类是临时的,由CGLIB生成。但是它仍然调用具有断点的类。

#1


42  

Ignore that. Even if you get that message, the breakpoint is still triggered. This class is temporal, generated by CGLIB. But it still invokes your class, which has the breakpoint.

忽略这一点。即使您得到了该消息,断点仍然被触发。这个类是临时的,由CGLIB生成。但是它仍然调用具有断点的类。