Xcode 4 - 分离控制台/日志窗口

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5306276/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:46:17  来源:igfitidea点击:

Xcode 4 - detach the console/log window

xcode

提问by sol

Is it possible to detach the console/log window in Xcode 4?

是否可以在 Xcode 4 中分离控制台/日志窗口?

Even better, how?

更好的是,如何?

回答by Kendall Helmstetter Gelner

Go to Xcode preferences, and open the Behaviortab.

转到 Xcode 首选项,然后打开Behavior选项卡。

Tell Xcode to open a tab called "Debugger" when "Run Pauses" or "Run Starts". Then run it, and break that Debuggingtab out into another window (drag it off the tab bar into its own window by just letting it drop outside the current window). Now reform it to your hearts content; it will stay that way. Also don't forget the little controls at the top right of the console window that slide the local variable display out of the way so you can have a full-width console on demand. I am not sure about keyboard shortcuts for that yet.

告诉 Xcode 在“运行暂停”或“运行开始”时打开一个名为“调试器”的选项卡。然后运行它,并将该调试选项卡分解到另一个窗口中(将它从选项卡栏拖到它自己的窗口中,只需让它放在当前窗口之外)。现在把它改造成你的心满意足;它将保持这种状态。也不要忘记控制台窗口右上角的小控件,它们可以将局部变量显示滑开,这样您就可以按需拥有全宽控制台。我还不确定键盘快捷键。

I usually keep the Debugging tab and one other tab in a separate window, for debugging tasks, and all my other editing tabs in a different window (and the debugging window on a separate monitor with the simulator). With the settings above it also means that, while editing a debugger reaching a breakpoint, it will not interrupt my editing by suddenly bringing forth the console.

我通常将调试选项卡和另一个选项卡放在一个单独的窗口中,用于调试任务,而我的所有其他编辑选项卡都在不同的窗口中(以及带有模拟器的单独监视器上的调试窗口)。有了上面的设置,这也意味着,在编辑达到断点的调试器时,它不会因为突然出现控制台而中断我的编辑。

回答by Jon Shier

Sure, create a new tab, drag it off the original window, and expand the debugger area to be the whole tab. Now, whether Xcode will remember that tab and its placement is another matter. File a bug with Apple to let them know your displeasure.

当然,创建一个新选项卡,将其拖出原始窗口,然后将调试器区域扩展为整个选项卡。现在,Xcode 是否会记住该选项卡及其位置是另一回事。向 Apple 提交错误,让他们知道您的不满。

回答by sol

Taking jshier's advice a step further, you can do File -> New Window, and expand the debug window to take up the entire window. But you have to manually expand it every time you open it. Ugh.

按照jshier的建议,你可以做File -> New Window,将调试窗口扩展到占据整个窗口。但是每次打开都得手动展开。啊。