Why this happens
Breakpoints accumulate quickly during debugging sessions. Each time you click in the gutter to pause execution, Xcode adds a breakpoint that persists across runs and even across project closes. Over time this clutters the Breakpoint Navigator, slows down debugger attachment, and can cause unexpected pauses in code you no longer need to inspect. Xcode does not clear breakpoints automatically on clean builds or project reopen, so a manual bulk removal is often necessary.
How to fix it
1. Use the Breakpoint Navigator (Recommended for Xcode 10 and later)
This is the most reliable method across modern Xcode versions.
- Press ⌘8 to open the Breakpoint Navigator (left sidebar, icon with a breakpoint marker).
– In Xcode 9 and earlier the shortcut was ⌘7 or ⌘6. - Click any breakpoint in the list, then press ⌘A to select all.
- Press Delete (or Backspace) to remove them all at once.
⌘8 → ⌘A → Delete
2. Context Menu in the Breakpoint Navigator
If you prefer mouse interaction:
- Open the Breakpoint Navigator (⌘8).
- Right-click (or Control-click) anywhere in the breakpoint list.
- Choose Delete All Breakpoints from the contextual menu.
This single menu command removes every user breakpoint without needing a selection step.
3. Keyboard Shortcut Sequence from the Source Answer
The originally accepted Stack Overflow answer describes a three-step shortcut chain that still works:
- ⌘7 (or ⌘6 in Xcode 4, ⌘⌥B in Xcode 3) to show the Breakpoint Navigator.
- ⌘A to select all breakpoints.
- Backspace to delete.
No third step is required; the answer’s “step 3” was a joke.
4. Remove Breakpoints from the Source Editor Gutter
For a small number of breakpoints you can also:
- Hover over a breakpoint marker in the gutter.
- Right-click the marker.
- Choose Delete Breakpoint.
Repeat for each one, but this is impractical for bulk removal.
How to prevent it
- Disable instead of delete: Click a breakpoint marker once to toggle it off (dimmed) rather than removing it. Disabled breakpoints stay in place for later sessions.
- Use breakpoint groups: In the Breakpoint Navigator, click the + button → New Breakpoint Group. Drag related breakpoints into groups so you can enable/disable or delete an entire feature’s breakpoints at once.
- Symbolic breakpoints for common patterns: Instead of scattering file-line breakpoints, add a symbolic breakpoint (⌘⇧B in the navigator) for a method name like
viewDidLoad. One symbolic breakpoint replaces dozens of line breakpoints. - Share schemes without breakpoints: Breakpoints are per-user data (stored in
xcuserdata/). They are not committed to git, so teammates won’t inherit your clutter.
FAQ
Do breakpoints get saved in git?
No. Breakpoints live in the per-user xcuserdata folder inside the project or workspace package. That folder is excluded by the default .gitignore, so breakpoints are never shared across clones.
Can I undo a bulk deletion?
Xcode does not provide an undo for “Delete All Breakpoints.” If you need them back, you must re-add them manually or restore the xcuserdata folder from a local backup (Time Machine, etc.).
Does Clean Build Folder (⌘⇧K) remove breakpoints?
No. Clean Build Folder only deletes derived data (build products, indexes). Breakpoints are debugger metadata stored separately and are untouched by any clean operation.
Why is the shortcut ⌘8 instead of ⌘7 in my Xcode?
Apple changed the navigator shortcuts in Xcode 10. ⌘8 now opens the Breakpoint Navigator; ⌘7 opens the Report Navigator. Muscle memory from older versions often leads to the wrong pane.
Can I export breakpoints to share with a colleague?
Yes. In the Breakpoint Navigator, select the breakpoints you want to share, right-click, and choose Share. This moves them from the “User” section to the “Shared” section of the scheme, which is committed to source control.
Parts of this guide are adapted from content licensed under CC BY-SA 3.0; this article is shared under the same license.