XCode 调试器通过停止按钮上的 SIGKILL 停止 [英] XCode debugger stops with SIGKILL on Stop button

查看:35
本文介绍了XCode 调试器通过停止按钮上的 SIGKILL 停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 MacOS Lion 上使用 XCode 4.2.在模拟器中调试 iPhone/iPad 应用程序时,我使用 XCode 工具栏(产品 | 停止)上的停止"按钮退出应用程序.在此之后,XCode 通常会打开 main.m 文件,将执行指针放在 UIApplicationMain 调用上并说程序收到了 SIGKILL".大约一秒钟后,它会中断调试模式,因此我无法调试此错误.我的应用程序涉及很多线程,所以,我猜这可能与线程仍在工作时被拉出的资源有关,或者类似的事情.这甚至可能是正常的,我不太关心这个问题,因为无论如何应用程序都会被终止.但是每次调试后看到这个 SIGKILL 真的很烦人.我该如何调试它?或者,有没有办法禁用它?

I am using XCode 4.2 on MacOS Lion. When debugging an iPhone/iPad app in Simulator, I am using "Stop" button on XCode toolbar (Product | Stop) to exit the app. Very often after this, XCode opens main.m file, puts the execution pointer on UIApplicationMain call and says "Program received SIGKILL". In about a second after that it breaks off debug mode, so I can not debug this error. My app involves lots of threads, so, my guess is it can be related to resources being pulled out when threads are still working, or something like that. This may even be normal, and I do not care very much about this problem, because the app is being terminated anyway. But seeing this SIGKILL after every debug is really annoying. How can I debug it? Alternatively, is there a way to disable it?

除了通常的活动日志(没有像常规异常那样的崩溃详细信息)之外,控制台中没有任何内容.

there's nothing in the console except the usual activity log (no crash details like with regular exceptions).

推荐答案

SIGKILL 是您在停止调试器时向进程发送的内容.没有任何问题,但有时它确实会出现并将您切换到 main.m 文件,该文件既无用又令人讨厌.

SIGKILL is what you are sending to the process when you stop the debugger. There isn't anything wrong, but sometimes it does show up and switch you to the main.m file which is useless and annoying.

要解决这个问题,不要费心从 Xcode 停止可执行文件.让它继续运行,当你想再次运行时,只需用播放"按钮重新启动,之前的任务就会终止.

To get around it, don't bother stopping the executable from Xcode. Just leave it running, and when you want to run again, just re-launch with the "Play" button and the previous task will be terminated anyway.

这篇关于XCode 调试器通过停止按钮上的 SIGKILL 停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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