Search code examples
xcodedebuggingidebreakpoints

Xcode breakpoints: dotted blue outline


I'm attempting to debug some code in Xcode. When I enable a breakpoint in the Xcode file's gutter, it shows up as a dotted line outline of the normal breakpoint:

Xcode breakpoint dotted line

I can't enable the breakpoint; it's either disabled or dotted.

What is the meaning of a dashed line Xcode breakpoint? Why can't I enable it?


Solution

  • If you hover over such a disabled breakpoint, it will display:

    Xcode won't pause at this breakpoint because it has not been resolved. Resolving it requires that:

    • The line at the breakpoint is compiled.
    • The compiler generates debug information that is not stripped out (check the Build Settings).
    • The library for the breakpoint is loaded.