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

7

199

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)

Empedocles answered 3/11, 2011 at 8:46 Comment(2)
Had the same issue just now. Thanks! Seems like I accidentaly pressed CTRL+ALT+B at some point.Valletta
Which is @#£$%! annoying, since set/clear breakpoint is CTRL+Shift+B !Ideate
C
341

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.

Celina answered 3/11, 2011 at 8:51 Comment(3)
I have to commit that I didn't use debugger since I switched to sts. I searched hotkeys and at skipping was no hotkey set. Like it was default setup from STS which I don't belive. What ever, I hope my post can help other users, if they got the same problem.Empedocles
I had skipped all breakpoints one day in my efforts to clear all breakpoints, I had forgotten about this! Thanks for the eye opener!Sanitarium
I'd say 99% of visitors here are encountering what I encounter about once per year with Eclipse. There's apparently a bug in eclipse that causes this "Skip All Breakpoints" feature to turn ON all by itself even though you didn't actually turn it on.Belloc
C
29

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

Chlorenchyma answered 26/10, 2016 at 9:55 Comment(0)
R
9

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.

Rightminded answered 29/3, 2016 at 13:26 Comment(1)
Thank you sooooo much! I must have hit this by accident. The Eclipse IDEs can be different but the shortcut works great!Bisexual
F
4

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

Forfeit answered 16/11, 2017 at 6:36 Comment(0)
H
1

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.

Hardhearted answered 29/12, 2013 at 11:10 Comment(0)
S
0

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
Silverware answered 6/1, 2015 at 7:53 Comment(0)
T
-1

In mine case neither ctrl+alt+B is working nor I am getting any option in run->skip all breakpoint. Do we have any alternative options for fix this breakpoint issue

Topknot answered 29/10, 2023 at 13:7 Comment(2)
You're commenting and thus not contributing an answer. Comments should be in the comments section. You can also start a new question.Marqueritemarques
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewQuintile

© 2022 - 2024 — McMap. All rights reserved.