简体   繁体   English

如何在Xcode中的设备和模拟器之间来回切换调试模式?

[英]How do I switch debugging mode back and forth between a device and the simulator in Xcode?

So I run an app on my device and then I run it on the simulator. 所以我在设备上运行一个应用程序,然后在模拟器上运行它。 Both are running and Xcode recognizes this, but I only receive debug info in the console from the most recently run one (in this case, the simulator). 两者都在运行,并且Xcode可以识别这一点,但是我在控制台中仅从最近运行的调试器(在本例中为模拟器)接收调试信息。 How do I switch the console output to be from the device or simulator so I can switch back and forth between the two? 如何将控制台输出切换为来自设备或模拟器的输出,以便可以在两者之间来回切换?

All you need to do is select the other "device" in the left side of the debugging pane in Xcode. 您需要做的就是在Xcode调试窗格的左侧选择另一个“设备”。 Then you will see the console for that device. 然后,您将看到该设备的控制台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM