使用多个窗口调试Eclipse [英] Debugging with Eclipse using multiple windows
问题描述
这真的很讨厌。
如何让Eclipse只在一个窗口中显示包含断点的文件?理想情况下,它将根据文件的打开位置选择哪个窗口。如果它还没有开放,我真的不在乎它弹出哪个窗口。
这对我有用:
在窗口 - >首选项 - >运行/调试 - >启动 - >启动配置启用应用窗口工作集
个人我发现这比创建两个工作空间更有效率。
I usually run a dual-monitor setup, so I have two Eclipse windows open for the same workspace, displaying different files. When I'm debugging and a breakpoint is hit, Eclipse switches to the "Debug" perspective, but it also shows the file/line where the breakpoint is in both of my windows. This occurs even if the file containing the breakpoint was open in one window but not the other (before the breakpoint was hit).
This is really annoying.
How can I have Eclipse only show the file containing the breakpoint in one window? Ideally, it would choose which window based on where the file is open already. If it's not already open somewhere, I don't really care which window it pops up in.
This worked for me: In Window->Preferences->Run/Debug->Launching->Launch Configurations enable "Apply window working set(s)"
Personally I find this more efficient than creating two workspaces.
这篇关于使用多个窗口调试Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!