运行Xcode控制台 [英] Running Xcode console

查看:119
本文介绍了运行Xcode控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用Instruments运行我的iphone应用程序以检查内存使用情况,但我也希望能够随时查看我的控制台输出。目前还没有办法吗?您只能在XCode中启动仪器或控制台。

I want to run my iphone app with Instruments to check on memory usage, but I also want to be able to see my Console output as I go along. Is there currently no way to do this? You can only seemingly start either Instruments or Console in XCode itself.

推荐答案

从Xcode中运行您的应用程序,以便在那里输出控制台输出。在您的应用程序运行时,启动Instruments并选择合适的仪器。在菜单栏的默认目标下,选择iPhone或计算机(适用于您正在测试的内容),然后在附加到进程下找到可执行文件的名称。

Run your application from within Xcode to have the console output piped there. While your application is running, start Instruments and choose an appropriate instrument. Under Default Target in the menu bar, select iPhone or Computer (whichever is appropriate for what you're testing), and under Attach to Process find the name of your executable.

当您单击记录按钮时,您的应用程序应开始在Instruments下进行分析,同时将其控制台输出定向到Xcode。遗憾的是,此附件过程需要在应用程序启动后进行,因此您可能需要单独分析应用程序的启动。

When you click the record button, your application should start being profiled under Instruments while having its console output directed to Xcode. Unfortunately, this attachment process will need to come after the application has started, so you may have to profile the startup of your application separately.

这篇关于运行Xcode控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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