关闭应用程序后如何调试 [英] How debug after closing application

查看:188
本文介绍了关闭应用程序后如何调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重现问题,该问题需要关闭并重新打开具有特定位置的应用程序。这里是我的问题:
$ b $ 1)当我的iPhone没有时,我怎样查看我的日志(使用 NSLog 命令)连接到XCode?

2)是否可以为iPhone模拟器设置特定位置(如城市的中心)作为默认值?我使用GPX文件,但每次从头开始运行项目时,位置都设置为未知。 解决方案

如果您想查看您的应用程序的日志在XCode下选择
选择'Window'子菜单并且有'Devices'子菜单(您可以使用shift + cmd + 2)



关于打开屏幕底部的屏幕即使未处于调试状态,也可以看到设备中的日志(如果您没有看到它,请找到左下角的小箭头并单击它)

)。



if您的设备未连接,您可以在连接时看到崩溃报告。

I am trying to reproduce issue, which requires to close and reopen my application with a specific location. Here's my questions:

1) How can I view my logs (using NSLog command) when my iPhone is not connected to XCode?

2) Is it possible to set specific location (like center of the city) for iPhone simulator as default? I use GPX files but every time when I run project from scratch the location is set to unknown.

解决方案

If you want to see the logs from your application
under XCode choose 'Window' sub menu and there 'Devices' sub menu (you can use shift+cmd+2)

on the opened screen in the bottom of the screen you'll see the log from the device even if it isn't in debug state (if you don't see it locate the little up arrow in the bottom left and click on it ).

if your device weren't connected you can see crash reports there when you connect it

这篇关于关闭应用程序后如何调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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