如何在 XCode 中删除断点

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1353759/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:46:27  来源:igfitidea点击:

How to delete breakpoints in XCode

xcodedebuggingbreakpoints

提问by jtbandes

I go to Breakpoints panel in XCode, in the 'Breakpoints' I click a breakpoint and click 'Delete', but it does not remove the breakpoint. And I try go to go to 'Project Breakpoints' and find the same breakpoint and click 'Delete'. But it still does not break the breakpoint.

我转到 XCode 中的 Breakpoints 面板,在“Breakpoints”中单击一个断点并单击“Delete”,但它不会删除断点。我尝试转到“项目断点”并找到相同的断点并单击“删除”。但它仍然没有打破断点。

回答by jtbandes

Drag them out of the bar on the side and they will disappear.

将它们拖出旁边的栏,它们就会消失。

You can also press the shortcut ?+\while your cursor is on the line, or press ?with the breakpoint selected in the navigator:

您也可以在光标位于行上时按下快捷键?+ \,或者?在导航器中选择的断点处按下:

breakpoint navigator

断点导航器

回答by WangYudong

Also try ?+\to toggle the breakpoint at the current line.

也可以尝试?+\在当前行切换断点。

回答by Laurent Etiemble

You can also right-click on it and select the "Delete" menu.

您也可以右键单击它并选择“删除”菜单。