启动后如何将调试器附加到iOS应用? [英] How to attach debugger to iOS app after launch?

查看:95
本文介绍了启动后如何将调试器附加到iOS应用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在解决一个问题,该问题很少发生,并且在Xcode下运行时似乎没有发生。

I have an issue I am troubleshooting which occurs very infrequently and doesn't seem to happen when I have things running under Xcode.

是否可以正常运行应用程序(即从Springboard运行),直到出现问题,然后再在该点附加调试器?

Is it possible to run an app normally (i.e. from Springboard) until my issue occurs, and then attach a debugger at that point?

如果可能的话,我希望这样做不会越狱。

I would prefer to do this without jailbreaking if possible.

推荐答案


  • 将连接的设备连接到Mac

  • Debug>通过PID或名称附加到进程

  • 在对话框中,输入通过Xcode启动时在Debug导航器中显示的应用名称。

  • 如果该应用已在运行,调试器将附加到正在运行的进程。如果它没有运行,它将等待应用启动,然后附加。

    If the app is already running, the debugger will attach to the running process. If it isn't running, it will wait for the app to launch and then attach.

    这篇关于启动后如何将调试器附加到iOS应用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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