Breakpoints are crossed out, how can I make them valid?

JavaEclipseBreakpointsSts Springsourcetoolsuite

Java Problem Overview


i got a tricky one:

look At Breakpoints, they are crossed out!

I can't set valid breakpoints. Not in Tests, neither in my Java Classes. I searched Stackoverflow and google, but I couldn't find anybody with the same problem.

I'm using STS(x86) and Maven.

Edit: It may seem confusing but I solved it by myself. I have to go Run-> Skip all Breakpoints (it was set, and I wonder how it was set, because I didn't do it)

Java Solutions


Solution 1 - Java

There is a menu entry you have discovered for yourself that toggles the skipping of all breakpoints. There is also an icon for this in the "Breakpoints" View, and there may be a hot-key defined as well, all of which you may have triggered by accident.

Take a look at the Run -> Skip All Breakpoints.

Solution 2 - Java

Screenshot of the 'skip all breakpoints' in eclipse.

enter image description here

When you click on 'skip all breakpoints'(which is selected), everything will become normal

Solution 3 - Java

The shortcut key for placing a breakpoint in Eclipse (Ctrl + Shift + B) is quite similar to the one that skips all the breakpoint (Ctrl + Alt + B). Hence, if a "skip all breakpoints" condition is to be cancelled, it can be achieved by pressing "Ctrl + Alt + B" again.

Solution 4 - Java

You should already be in debug perspective. If not just go to debug perspective. You should see disable all breakpoints button. -

enter image description here

Click on it and it should allow all breakpoints.

enter image description here

Solution 5 - Java

  1. Run => Skip all breakpoints.
  2. Run => remove all break points.

and then your debugger wont show cross sign and will keep debugging your app.

Solution 6 - Java

I followed these steps below to fix this

  1. select debug only tomcat server
  2. debug particular application and then prompt came whether to re enable break points and I selected yes

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMartinLView Question on Stackoverflow
Solution 1 - JavaMichael BorgwardtView Answer on Stackoverflow
Solution 2 - Javacharan tejaView Answer on Stackoverflow
Solution 3 - JavaPsi-EdView Answer on Stackoverflow
Solution 4 - JavaAniket ThakurView Answer on Stackoverflow
Solution 5 - JavaUMAR-MOBITSOLUTIONSView Answer on Stackoverflow
Solution 6 - JavaUmesh GView Answer on Stackoverflow