Darren Black
Darren Black

Reputation: 1040

EXC_BREAKPOINT code=1 in _CFRunLoopServiceMachPort

I'm getting some odd behaviour. In my code, if I enable debugging, the debugger stops here:

enter image description here

Afterwards, even if I disable debugging and hit continue, the debugger remains stuck there.

If I don't enable the debugger, it doesn't seem to stop. What in the world is going on here? Here's the stack trace... it seems rather useless to me, but that might just be because I have no clue what's happening:

enter image description here

Upvotes: 2

Views: 1833

Answers (2)

Fredrik E
Fredrik E

Reputation: 1838

This is also sometimes caused by running Instruments (for example Zombies or Leaks) at the same time. Some instruments work by setting breakpoints that will not show up in XCode, but will nevertheless break in the debugger.

Upvotes: 0

Maen
Maen

Reputation: 10698

Try to disable breakpoints, and especially any symbolic breakpoints set up, then clean your project, and try again.

I sometime have an EXC_BREAKPOINT without any apparent reason ; then I clean, restart Xcode, toggle debugging or switch targets randomly, and it somehow does the trick.

Upvotes: 1

Related Questions