Xcode + remove all breakpoints
101,054
Solution 1
Well there's a 3 step way:
- Press CMD(⌘)+7 to show all breakpoints. In Xcode4 press CMD(⌘)+6, in Xcode3 press CMD(⌘)+ALT+B.
- Select all breakpoints with CMD(⌘)+A and delete them, like deleting text, with backspace.
- There's no step 3 :)
Solution 2
Its very easy to do in new Xcode. Just click on breakpoints Tab then select all then delete.
Xcode 10 Screenshot:
Old Xcode Screenshot:
tap. See attach image for clear reference.
Solution 3
In Xcode, you can also do by right clicking the project name on the breakpoints tab and then you can see the options for deleting all breakpoints including disabling and sharing breakpoints.
Solution 4
In Xcode 4, in the debugger console, type "breakpoint delete" or "br del" for short:
(lldb) br del
About to delete all breakpoints, do you want to do that?: [Y/n] y
All breakpoints removed. (1 breakpoints)
(lldb)
You can't rely on the GUI breakpoint list, since nothing you enter from the command line will show up there.
Solution 5
Other ways:
- Select Breakpoints group in Groups and Files tree, click in Detail view, Command-A, Delete
- Disclose Breakpoints smartgroup in Groups and Files tree, shift- or command-select breakpoints in outline, press Delete
- Run > Console, when app is paused, type "delete breakpoints" and press Return
Related videos on Youtube
Comments
-
pratik about 3 years
Is there any way to remove all the breakpoints in Xcode?
-
James Moore about 11 yearsIn Xcode 4, this doesn't show or delete all breakpoints, just some of them. Try adding a breakpoint from the command line, and you'll see that it doesn't show up in this list.
-
gerrytan over 10 yearsOn xcode 4.6.3 just go to breeakpoints tab on the left panel, select all using shift+click and delete them using delete key
-
Neo42 over 6 yearsHow about how to do it without a keyboard shortcut? Also, there isn't an alt key on Mac, so your Xcode 3 method isn't valid. and do you mean CMD 7 or CMD F7?
-
1737973 about 6 yearsThis is the acceptable response today, so heres my upvote.
-
Andrew Koster over 5 yearsThis is out of date.
-
Andrew Koster over 5 yearsThis answer is out of date.
-
Nazik over 5 years@AndrewKoster, even in the latest Xcode 9.4, it's working dude. Go to breakpoints tab, right click the project name, it'll show the above options including delete breakpoints.
-
iPhoneProcessor over 5 years@AndrewKoster Hey its same in Xcode 10 also...what's wrong ? Just Icon in screenshot look bit different...but works same in all Xcode
-
Andrew Koster over 5 yearsYou're right, I glossed over the "on the breakpoints tab" part of your answer, because I never use the breakpoints tab and I don't think I was aware of its existence. I was just right-clicking on the project in the normal project view.
-
Andrew Koster over 5 yearsI guess my comment got deleted? Anyway, I reversed my downvote, this works. Looks like you posted new screenshots for people like me who are bad at understanding explanations.
-
rmbianchi almost 5 yearsThanks! I was searching for the LLDB command for that, and I found your answer, which works perfectly in the terminal! +1!!
-
Zoe stands with Ukraine over 4 years@iPhoneProcessor Keyboard shortcuts can significantly speed up interaction with programs. Provided the program extensively supports keyboard shortcuts, you can usually navigate a lot further in the time it takes to reach for and move the mouse alone. It doesn't make life complex, I'd argue it does the exact opposite, especially if the shortcuts stay the same while the UI changes. It also saves time to find the button if you have no idea where it is, or the buttons are moved around after an update.