启动后将调试器连接到IOS应用程序

启动后将调试器连接到IOS应用程序

本文介绍了启动后将调试器连接到IOS应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我的故障排除发生很少,似乎没有发生,当我有运行在Xcode下的东西。



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



如果可能,我宁愿做这个没有越狱的。

解决方案

将您的设备连接到您的Mac ,在Xcode中选择产品 - >附加到进程 - >按进程标识符(PID)或名称...。在对话框中,输入您通过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.

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.

解决方案

With your device connected to your Mac, select Product -> Attach to Process -> By Process Identifier (PID) or Name... in Xcode. In the dialog sheet, enter the name of your app as it appears in the Debug navigator when started via Xcode.

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应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 21:06