Search code examples
iosxcodedebuggingexc-bad-accessbreakpoints

Stopping at breakpoints causing EXC_BAD_ACCESS


My app runs fine and as expected, but for some reason when I place breakpoints, stepping into/over/resuming causes the program to crash with EXC_BAD_ACCESS. This does not happen if I remove/disable breakpoints.

Any advice?


Solution

  • From what I can see, LLDB appears to be broken in the Xcode 4.2 and 4.2.1. Switch to GDB in your "Edit Scheme" settings.

    Breakpoints work just as expected after switching to GDB.

    Edit Scheme Dialog