why can't I set up a breakpoint in eclipse?

52,949

Solution 1

You've probably just pressed "Skip All Breakpoints" in the Breakpoint view - simply press it again.

Skip All Breakpoints (Ctrl + Alt +V)

Default key bindings are: Ctrl + Alt + B.

Solution 2

This doesn't exactly answer the OPs question, but when trying to double click to add break points, I was getting messages stating "this feature is not enabled".

I had to right click on the break point bar and select "Breakpoint Types" -> "C/C++ Breakpoints" instead of "Default". Then it worked fine.

Solution 3

in python, I had to go to: windows->perspective->Open Perspective->Debug then select the Breakpoints tab and make sure the zero with the slash (skip all breakpoints) is not selected (you can also use Ctrl-Alt-B to toggle it).

Solution 4

  1. Open Debug View
  2. Open Breakpoint Perspective
  3. Right-click all breakpoints there
  4. Press Enable

Solution 5

In my case, I'd edited my code during debugging, adding a null-check so I could place a breakpoint to stop execution only when a certain value was null. I couldn't add a breakpoint because the line of code in question was not present in the running application.

In Java, certain code changes can be woven in as soon as the file is saved, so in my case, remembering to save the changes was enough to enable placing a breakpoint.

For changes that can't be woven in, the application must be restarted before the new lines of code will be present.

Share:
52,949
kloop
Author by

kloop

Updated on July 09, 2022

Comments

  • kloop
    kloop almost 2 years

    For some odd reason, I can't use breakpoints in my eclipse project. All breakpoints that I set have a diagonal line on them, above the dot in the respective line (on the left margin of the window), as if they are blocked. When I run in debug mode, the breakpoints are ignored. Any ideas?