Xcode + remove all breakpoints

僤鯓⒐⒋嵵緔 提交于 2019-11-26 11:49:08

问题


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


回答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 :)



回答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.



回答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.




回答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.




回答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



回答6:


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

Then you can select and delete them.




回答7:


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

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




回答8:


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.




回答9:


As an addition to mxg 's answer above:

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




回答10:


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.




回答11:


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




回答12:


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.



来源:https://stackoverflow.com/questions/1665744/xcode-remove-all-breakpoints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!