如何禁用 Xcode 中的所有断点
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1067689/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable all breakpoints in Xcode
提问by n179911
Is there an easy way to disable all breakpoints in Xcode? I tried:
有没有一种简单的方法可以禁用 Xcode 中的所有断点?我试过:
- 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.
这不会禁用所有这些。我需要一次选择一个,然后取消选中复选框。我想知道是否有一种简单的方法可以完全禁用其中的一堆。
采纳答案by Alex Rozanski
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.
如果您展开窗格中的Breakpoints
部分Groups & Files
,您会发现另外两个子目录 -Project Breakpoints
和Global Breakpoints
. 假设断点集特定于您当前的项目,您的断点将列在 下Project Breakpoints
。右键单击此目录并Disable Breakpoints
从上下文菜单中选择,这将禁用项目的所有断点。
回答by inigo333
With ?+Yyou can enable or disable all of them.
With ?+7you can actually see all of them.
使用?+Y您可以启用或禁用所有这些。
使用?+7您实际上可以看到所有这些。
In the previous Xcode versions,it is ?+6
在以前的 Xcode 版本中,它是?+6
Other useful shortcuts:
其他有用的快捷键:
http://www.1729.us/xcode/Xcode%20Shortcuts.pdf
https://web.archive.org/web/20120518183100/https://pragmaticstudio.com/media/Xcode4Shortcuts.pdf
http://www.1729.us/xcode/Xcode%20Shortcuts.pdf
https://web.archive.org/web/20120518183100/https://pragmaticstudio.com/media/Xcode4Shortcuts.pdf
回答by mask
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.
有用的快捷方式是“command y”来禁用所有断点。您可以切换此命令以禁用/启用所有断点。这是针对 Xcode 4.x 版本的。
回答by Abhilash Reddy
From xcode 5.0 you can enable or disable all breakpoints in this fashion
从 xcode 5.0 开始,您可以以这种方式启用或禁用所有断点
回答by Suraj K Thomas
Xcode 10
Xcode 10
The most easiest way is to do ? + y to disable enable breakpoints .
最简单的方法是做什么?+ y 禁用启用断点。
There is another way
还有另一种方式
go to Xcode project navigations pane
Click on show Breakpoint navigator
转到 Xcode 项目导航窗格
单击显示断点导航器
Right click on the project file and select disable all break points
右键单击项目文件并选择禁用所有断点