在iPhone设备上运行时,调试器不会在断点处停止 [英] Debugger does not stop at breakpoints when running on iPhone device

查看:185
本文介绍了在iPhone设备上运行时,调试器不会在断点处停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在设备上测试我的应用程序,并在控制台上查看所有的NSLOG,同时在设备上运行apache。我还想在断点处停止应用程序,但应用程序不会在断点处停止,而不是打印NSLOG。我正在使用调试版本。请告诉我如何实现这个
提前感谢

I want to test my app on device and see all the NSLOGs on console while runnig the ap on device.I also want to stop the app at breakpoints but app does not stop on breakpoints and not print NSLOGs .I have unchecked load symbols lazily .I am using a debug build .Please tell me how to achieve this Thanks in advance

注意:启动应用程序后,x代码显示应用程序被调试没有被运行(我认为问题是在xcode将应用程序转移到设备之后,然后与设备断开连接)

NOTE:After starting the app x code shows the app being debugged is not being run (I think the problem is after xcode transfers the app to device then it disconnects with device)

推荐答案

尝试在didFinishLaunchingWithOptions中设置断点,然后查看您想要测试断点的视图。基本上你的代码之前的任何地方(你想要测试),肯定会被调用。

Try to set breakpoint in the didFinishLaunchingWithOptions then the viewwillappear of the view you want to test the breakpoints on. basically any places before your code (which you want to test) which surely get called.

我还没有完全确定为什么会发生这样的事情呢?
就像准备Xcode寻找断点:)

I had same problem before not exactly sure why does it happen though. it's like preparing Xcode to look for breakpoints :)

这篇关于在iPhone设备上运行时,调试器不会在断点处停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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