How to delete breakpoints in XCode

2019-02-05 20:24发布

问题:

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.

回答1:

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:



回答2:

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



回答3:

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