如何在与 Xcode 分开的窗口中显示 Xcode 调试器?

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

How to show Xcode debugger in a window separate from Xcode?

xcodedebuggingxcode4

提问by James Raitsev

I was watching a video lecture from iTunes U., where instructor showed how one can take a debugger section of the Xcode and was able to pull that window away from the main.

我正在观看来自 iTunes U. 的视频讲座,其中讲师展示了如何使用 Xcode 的调试器部分并能够将该窗口从主窗口拉开。

Unfortunately, video showed instructions on how to do it in Xcode3. How might one do it in Xcode4?

不幸的是,视频显示了如何在 Xcode3 中执行此操作的说明。如何在 Xcode4 中做到这一点?

How can one either detach a debugger section or, possibly, configure preferences to do it automatically?

如何分离调试器部分,或者可能配置首选项以自动执行此操作?

回答by Daniel Eckhart

Open a new tab, show the debugger (cmd-shift-Y) and drag the divider all the way to the top. Close the navigator (cmd-0) and inspector windows (cmd-opt-0), then drag the tab off into a new window.

打开一个新选项卡,显示调试器(cmd-shift-Y)并将分隔符一直拖到顶部。关闭导航器 (cmd-0) 和检查器窗口 (cmd-opt-0),然后将选项卡拖到新窗口中。

If you name the tabbefore you tear it off, e.g., "Debugger", then set up a Behavior in Xcode's preferences ( Preferences -> Behaviors -> Run Starts -> Show Tab "Debugger" ), it'll show that window when you run your app. It'll even recreate it if you close it.

如果在撕下之前命名选项卡,例如“调试器”,然后在 Xcode 的首选项中设置一个行为(首选项 -> 行为 -> 运行开始 -> 显示选项卡“调试器”),它会在你运行你的应用程序。如果您关闭它,它甚至会重新创建它。

If you have access to the WWDC 2011 videos, "Maximizing Productivity in Xcode 4" has a lot of great info.

如果您可以访问 WWDC 2011 视频,“Maximizing Productivity in Xcode 4”有很多很棒的信息。

Here's a screenshot before tearing the tab off: enter image description here

这是撕下标签之前的屏幕截图: 在此处输入图片说明

回答by Enrico Susatyo

I know it's a little too late, but I'm going to be borrowing from this answer. Go to your preferences, go to the behaviour tab. Change the running behaviour to show a new window.

我知道这有点太晚了,但我将从这个答案中借用。转到您的首选项,转到行为选项卡。更改运行行为以显示新窗口。

If you don't want the window to have an editor or toolbar, you can customise it that way too.

如果您不希望窗口具有编辑器或工具栏,您也可以通过这种方式对其进行自定义。

enter image description here

在此处输入图片说明