在Eclipse中,如何在终止进程后更改透视? [英] In Eclipse, how do I change perspectives after terminating a process?

查看:136
本文介绍了在Eclipse中,如何在终止进程后更改透视?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,当您点击断点时,默认情况下,Eclipse会自动切换到Debug透视图。但是,令我烦恼的是,在终止进程时它不会自动切换回以前的角度(比如Java)。即使没有什么可调试,因为没有任何运行,它只是停留在调试的角度。



这是可能吗?

解决方案

要完成标记的答案,选项告诉Eclipse何时在程序暂停时切换到相关联的角度 - 意思是当断点被击中时,它将切换到Debug透视图。



切换回另一个完成调试后的透视图必须是手动





如果你想避免它首先切换到Debug,你可以选择Never作为选项(在Eclipse中介绍



(您可以在运行中找到给定的首选项页面/ Debug> Perspective





如果您要切换回调试程序正常终止的情况(不是当您 想要停止DEB您可能希望Eclipse能够明确您的程序正常终止,并切换到当时的默认透视图。



但是,没有默认视角的概念,那么Eclipse如何知道哪一个切换到? (首选项/透视/默认仅适用于开放透视对话框,但这可能与您实际想要在调试后切换回来的视角不同)





此外,Eclipse是否关闭Debug透视图或只是更改为不同的?

如果有多个程序运行 - 当一个程序终止时,您可能仍然有兴趣调试另一个程序,或可能不是。



关键是,当改变观点(和什么 )机器不合理 - 它需要一个人知道他下一步要做什么。


So Eclipse by default automatically switches to the Debug perspective when you hit a breakpoint. However, it is annoying me that it doesn't automatically switch back to the previous perspective (say, Java) when terminating the process. It just stays in the debug perspective even though there is nothing to debug because nothing is running.

Is this possible?

解决方案

To complete mark's answer, that option tells Eclipse when to switch to the associated perspective upon program suspension - meaning when a breakpoint is hit, it will switch to Debug perspective.

Switching back to another perspective after you're done debugging has to be manual

If you want to avoid it switching to Debug in the first place, you can choose "Never" as the option (introduced in Eclipse 3.2 at the time).

(You can find the given Preferences page in Run/Debug > Perspective)

If you want to switch back in the situation where the debugged program terminates normally (Not when you want to stop debugging it yourself), you may hope Eclipse figures out that your program terminates normally and switch to a "default" perspective at that time...

However, there is no notion of "default" perspective, so how would Eclipse knows which one to switch to ? (the "Preferences/Perspectives/Make default" is only for the "Open Perspective" dialog, but that may not be the same perspective than the one you actually want to switch back to after a debug)

Also, should Eclipse closes the Debug perspective or just changes to a different one ?
What if there is more than one program running -- when one terminates, you might still be interested in debugging the other one, or maybe not.

The point is, the decision about when to change perspective (and what perspective to change to) is not reasonable for the machine to make -- it requires a person knowing what he wants to do next.

这篇关于在Eclipse中,如何在终止进程后更改透视?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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