Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable all breakpoints in Xcode

Is there an easy way to disable all breakpoints in Xcode? I tried:

  • highlight all breakpoints
  • click 'Deactivate'

That does not disable all of them. I need to select one at a time, and unmark the checkbox. I wonder if there is an easy way to disable a bunch of them altogether.

like image 376
n179911 Avatar asked Jul 01 '09 07:07

n179911


3 Answers

With +Y you can enable or disable all of them.
With +7 you can actually see all of them.

In the previous Xcode versions,it is +6

Other useful shortcuts:

http://www.1729.us/xcode/Xcode%20Shortcuts.pdf
https://web.archive.org/web/20120518183100/https://pragmaticstudio.com/media/Xcode4Shortcuts.pdf

like image 191
inigo333 Avatar answered Oct 26 '22 07:10

inigo333


If you expand the Breakpoints section in the Groups & Files pane, you'll find two further subdirectories - Project Breakpoints and Global Breakpoints. Assuming that the breakpoints set are specific to your current project, your breakpoints will be listed under Project Breakpoints. Right click on this directory and select Disable Breakpoints from the context menu, which will disable all the breakpoints for your project.

like image 45
Alex Rozanski Avatar answered Oct 26 '22 08:10

Alex Rozanski


Useful shortcut is "command y" to disable all the break point. You can toggle this command to disable/enable all breakpoints. This is for Xcode 4.x version.

like image 25
mask Avatar answered Oct 26 '22 06:10

mask