在Xcode中设置断点时,iOS应用程序崩溃 [英] iOS App crashes when setting breakpoint in Xcode

查看:850
本文介绍了在Xcode中设置断点时,iOS应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我正在开发,其中在应用程序运行时在Xcode中设置断点,导致它崩溃。至少我认为这是一个崩溃。在控制台中有没有说发生了什么。应用程序就会终止。

I have an app I'm developing where setting a breakpoint in Xcode while the app is running causes it to crash. At least I assume it is a crash. There is nothing in the console saying what happened. The app just terminates.

请注意,中断点没有被命中,只是设置它的行为会导致这种情况。

Note that the break point is not being hit, just the act of setting it causes this.

我开发了许多应用程序,这是第一个这样的行为。有没有人有任何想法可能发生或如何弄清楚这一点?这真的是减慢我的调试。

I've developed many apps and this is the first to act like this. Does anyone have any ideas what could be happening or how to figure this out? It is really slowing down my debugging.

推荐答案

我假设你使用Xcode 4.x.尝试进入您的方案的设置,并切换到不同的调试器(GDB,如果您有LLDB当前设置,反之亦然)。

I'm assuming you're using Xcode 4.x. Try going into your scheme's settings and switch to a different debugger (GDB if you have LLDB currently set, or vice versa).

如果这不工作,更多信息:

If that doesn't work, we need more info:


  • 您使用的是Xcode和iOS的哪个版本?


  • 您是否尝试在程式码的不同位置放置断点?

据我所知,这是一个调试器问题。所以你的应用程序实际上不会崩溃,它是崩溃的调试会话,导致应用程序终止。你可以观察到类似的效果,当你在Xcode中点击停止或断开你的设备,而应用程序连接到Xcode中的调试器。

As far as I can tell, it's a debugger issue. So your app does not actually crash, it's the debug session that crashes which causes the app to terminate. You can observe a similar effect when you hit Stop in Xcode or disconnect your device while an app is attached to the debugger in Xcode.

可能是一个问题与不匹配的Xcode和iOS版本。请提供有关您环境的更多信息,以帮助诊断问题。

Might be an issue with mismatching Xcode and iOS versions. Please provide more info about your environment to help diagnose the problem.

这篇关于在Xcode中设置断点时,iOS应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆