在Eclipse中调试时如何阻止其他线程窃取焦点? [英] How to stop other threads stealing focus when debugging in Eclipse?

查看:142
本文介绍了在Eclipse中调试时如何阻止其他线程窃取焦点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试在Eclipse 3.4.1中运行的服务器进程。有20个线程,睡觉后以各种间隔醒来。



我在一个线程上在一个方法中设置了断点,Eclipse在那里正确停止。线程在调试视图中使用堆栈跟踪扩展,我可以使用各种按钮来逐步完成。这是我所期望的。



我的问题是,当我正在爬过来的时候,另一个正在运行的线程醒来似乎是在Debug视图中窃取了焦点。我暂停的线程没有被选择或扩展(它旁边有一个+),所有的按钮被禁用。我必须点击挂起的线程才能继续调试。



以前有没有人看到过,知道任何可以更改的解决方法或设置?

解决方案

如果上述不能帮助你,一旦调试你想要的地方,你总是可以禁用所有的断点。



断点视图中:Ctrl-A,右键单击 - >禁用


I'm debugging a server process running in Eclipse 3.4.1. There are 20 threads or so, waking up at various interval after sleeping.

I set a breakpoint in one method on one thread, and Eclipse stops there properly. The thread is expanded with a stack trace in the Debug view, and I can use the various buttons to step through. This is all what I expect.

My problem is that it seems like when another running thread wakes up while I am stepping through, it steals the focus in the Debug view. My suspended thread is not selected or expanded anymore (it has a + next to it) and all the buttons are disabled. I have to click back on the suspended thread to continue debugging.

Has anyone seen this before and know any workarounds or settings I could change?

解决方案

If the above does not help you can always disable all your breakpoints once you are debugging where you want to be.

In the Breakpoints view: Ctrl-A, Right click -> Disable

这篇关于在Eclipse中调试时如何阻止其他线程窃取焦点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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