Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't debug using breakpoints

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"

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 ?

like image 518
Zaur Guliyev Avatar asked Nov 19 '11 15:11

Zaur Guliyev


People also ask

How do you use breakpoints in debugging?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

Why breakpoints are not working in Eclipse?

The debugger stops at main because a temporary breakpoint was set there. You don't see it because it evaporates as soon as it is hit. So, Eclipse IS setting breakpoints that work.

How do I enable breakpoints in Vscode?

Breakpoints can be toggled by clicking on the editor margin or using F9 on the current line. Finer breakpoint control (enable/disable/reapply) can be done in the Run and Debug view's BREAKPOINTS section.


1 Answers

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.

like image 58
Bozho Avatar answered Oct 11 '22 17:10

Bozho