如何在 Xcode 中查看打印消息? [英] How to view print messages in Xcode?

查看:46
本文介绍了如何在 Xcode 中查看打印消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Xcode 中查看运行时打印的消息?

How can I see the messages being printed at runtime in Xcode?

例如以下行:

print("Testing")

推荐答案

按 ⇧⌘Y 或选择查看">调试区域">显示调试区域"以显示控制台输出(或 ⇧⌘C/激活控制台).通常,当你的程序产生输出时,这个窗口会自动打开(这由 Xcode 的 Preferences 的 Behaviors 部分控制).

Press ⇧⌘Y or choose View > Debug Area > Show Debug Area to show the console output (or ⇧⌘C / Activate Console). Usually, this window will open automatically when your program produces output (this is controlled by the Behaviors section of Xcode's Preferences).

这篇关于如何在 Xcode 中查看打印消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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