IOS app crashes when setting breakpoint in Xcode

I have an application that I develop where setting a breakpoint in Xcode during application startup fails. At least I guess this is a crash. There is nothing in the console saying what happened. The application just quits.

Please note that the breakpoint does not hit, only the reason for setting it causes this.

I have developed many applications, and this is the first thing to do. Does anyone have any ideas what might happen or how to understand this? It really slows down my debugging.

0
source share
1 answer

I assume you are using Xcode 4.x. Try entering your schema settings and switch to another debugger (GDB if LLDB is currently installed or vice versa).

If this does not work, we need more information:

  • which version of Xcode and iOS are you using?
  • Is there a problem in the simulator or on your device, or in both cases?
  • Have you tried to place a breakpoint in different places in your code?

As far as I can tell, this is a debugger problem. So your application is not really crashing, it is a debugging session that leads to a crash that causes the application to terminate. A similar effect can be observed when you click Stop in Xcode or disconnect your device when the application is attached to the debugger in Xcode.

There may be a problem with the mismatch between the versions of Xcode and iOS. Please provide additional information about your environment to help diagnose the problem.

+6
source

All Articles