Xcode + remove all breakpoints

XcodeBreakpoints

Xcode Problem Overview


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

Xcode Solutions


Solution 1 - Xcode

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 - Xcode

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 - Xcode

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 - Xcode

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 - Xcode

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

Solution 6 - Xcode

Xcode 10

> The most easiest way is to do ⌘ + y to disable enable breakpoints .

There is another way

> go to Xcode project navigations pane > > > > Click on show Breakpoint navigator

enter image description here

> Right click on the project file and select disable all break points

enter image description here

Solution 7 - Xcode

In Xcode 9 it's CMD(⌘) + 8 to access all breakpoints, you can also just click here:

Sidebar when running the app

Then you can select and delete them.

Solution 8 - Xcode

Additionally, you can customize your Toolbar and put the "Breakpoints" button there. Click this on/off will active/deactivate all breakpoints. While this doesn't remove them, it may be useful if you just don't want them to be hit for a run.

Solution 9 - Xcode

As an addition to mxg 's answer above:

in Xcode 5 it's been changed to CMD(⌘) + 7

Solution 10 - Xcode

For Xcode 5: In ToolBar, select Navigate -> select Reveal in Project Navigator -> In Navigator area, select Show the Breakpoint Navigator.

Here, You can edit, hide/unhide, share, move the breakpoint for each and every class.

Note: Because of Xcode newbie's, am explained the steps from toolbar to show the Breakpoint Navigator.

Solution 11 - Xcode

For XCode 12:

  1. Press CMD ⌘ + 8

  2. Select All (CMD ⌘ + A)

  3. Right Click and Select "Delete Breakpoints"

Solution 12 - Xcode

CMD(⌘) + a
CMD(⌘) + /
CMD(⌘) + /

Solution 13 - Xcode

For XCode 12.4

  1. Click on Debug in Toolbar
  2. Choose Breakpoints
  3. Then Click on Delete All Breakpoints

That's it!!

Solution 14 - Xcode

In XCode 7 you can just drag a bp into the project view window and an X will appear, release mouse and it will be deleted.

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
QuestionpratikView Question on Stackoverflow
Solution 1 - XcodemxgView Answer on Stackoverflow
Solution 2 - XcodeiPhoneProcessorView Answer on Stackoverflow
Solution 3 - XcodeNazikView Answer on Stackoverflow
Solution 4 - XcodeJames MooreView Answer on Stackoverflow
Solution 5 - XcodecdespinosaView Answer on Stackoverflow
Solution 6 - XcodeSuraj K ThomasView Answer on Stackoverflow
Solution 7 - XcodeGuillermo AguirreView Answer on Stackoverflow
Solution 8 - XcodeMarkPowellView Answer on Stackoverflow
Solution 9 - XcodeBoBroView Answer on Stackoverflow
Solution 10 - XcodeMohd SadhamView Answer on Stackoverflow
Solution 11 - XcodeEdward MordrakeView Answer on Stackoverflow
Solution 12 - XcodeChrisSannarView Answer on Stackoverflow
Solution 13 - Xcodemanoj kiranView Answer on Stackoverflow
Solution 14 - XcodeMike PurcellView Answer on Stackoverflow