使用多个窗口调试Eclipse [英] Debugging with Eclipse using multiple windows

查看:239
本文介绍了使用多个窗口调试Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常运行一个双显示器设置,所以我有两个Eclipse窗口打开相同的工作区,显示不同的文件。当我调试并且断点被击中时,Eclipse切换到Debug视图,但它也显示了我的两个窗口中断点的文件/行。即使包含断点的文件在一个窗口中打开而不是另一个窗口(在断点被击中之前)。



这真的很讨厌。



如何让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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆