Xcode + remove all breakpoints

101,054

Solution 1

Well there's a 3 step way:

  1. Press CMD(⌘)+7 to show all breakpoints. In Xcode4 press CMD(⌘)+6, in Xcode3 press CMD(⌘)+ALT+B.
  2. Select all breakpoints with CMD(⌘)+A and delete them, like deleting text, with backspace.
  3. 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:

enter image description here

Old Xcode Screenshot:

enter image description here 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.

enter image description here

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
Share:
101,054

Related videos on Youtube

pratik
Author by

pratik

...

Updated on March 19, 2021

Comments

  • pratik
    pratik about 3 years

    Is there any way to remove all the breakpoints in Xcode?

  • James Moore
    James Moore about 11 years
    In 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
    gerrytan over 10 years
    On 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
    Neo42 over 6 years
    How 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
    1737973 about 6 years
    This is the acceptable response today, so heres my upvote.
  • Andrew Koster
    Andrew Koster over 5 years
    This is out of date.
  • Andrew Koster
    Andrew Koster over 5 years
    This answer is out of date.
  • Nazik
    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
    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
    Andrew Koster over 5 years
    You'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
    Andrew Koster over 5 years
    I 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
    rmbianchi almost 5 years
    Thanks! 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
    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.