Xcode 6 到 Xcode 11 - 分离控制台/日志窗口
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32425625/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 6 to Xcode 11 - Detach the Console/Log Window
提问by J-Dizzle
Is it possible to detach the console/log window in Xcode 6 to Xcode 9? If so, how do you detach it from the main console, into it's own window?
是否可以将 Xcode 6 中的控制台/日志窗口分离到 Xcode 9?如果是这样,你如何将它从主控制台分离到它自己的窗口中?
This question was previously asked for Xcode 4 but the answer doesn't work for Xcode 6 to Xcode 9 -
这个问题以前是针对 Xcode 4 提出的,但答案不适用于 Xcode 6 到 Xcode 9 -
See the attached screenshot for illustration of the console/log view in question
有关控制台/日志视图的说明,请参阅随附的屏幕截图
回答by David DelMonte
Well, better late than never....
嗯,迟到总比不到好......
I found that I could maneuver and detach the console.
我发现我可以操纵和分离控制台。
Add new tab.
Name the tab (eg Debugger).
添加新标签。
命名选项卡(例如调试器)。
In the new tab, expand the console so it fills the main window.
在新选项卡中,展开控制台以填充主窗口。
- Right-click the new tab and select open in new window.
- 右键单击新选项卡并选择在新窗口中打开。
You'll have to quit Xcode and restart it to maintain the new window, rather than close projects or windows separately.
您必须退出 Xcode 并重新启动它以维护新窗口,而不是单独关闭项目或窗口。
Apologize for the delay. Hope this is still useful..
为延迟道歉。希望这仍然有用..
UPDATE
更新
- This still works with Xcode 11.3!
- To stop seperating the window : Xcode > Behaviors > Edit Behaviors
- 这仍然适用于 Xcode 11.3!
- 停止分离窗口:Xcode > Behaviors > Edit Behaviors
Then set as in the screenshot:
然后设置为截图:
回答by ooOlly
Solution without restarting Xcode. Thank @David DelMonte for illuminating me.
无需重新启动 Xcode 的解决方案。感谢@David DelMonte 照亮了我。
You can change Xcode behaviors configuration to open a new tab named Debugger in a separate window when project start running.
当项目开始运行时,您可以更改 Xcode 行为配置以在单独的窗口中打开一个名为 Debugger 的新选项卡。
Then expand console view to full window in the debugger tab, Xcode will remember your reforms.
然后在调试器选项卡中将控制台视图扩展到全窗口,Xcode 会记住您的修改。