在终止Eclipse中的调试过程后如何改变视角? [英] How to change back the perspective after terminating the debugged process in Eclipse?

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

问题描述

默认情况下,当您遇到断点时,Eclipse会自动切换到调试透视图。

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.

推荐答案

要完成标记的答案,该选项告诉Eclipse在程序挂起时何时切换到关联的透视图-意味着断点是点击,它将切换到调试透视图。

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.

调试完成后,必须切换回另一个透视图:

  • manual (mouse click)
  • manual ("Switch Perspective" shortcut CTRL F8)
  • automatic: Debug Perspective Auto Closer, which supplements bug 46336. (initially reported by zim)

调试透视图自动关闭



在调试结束时自动打开上一个透视图。

Debug Perspective Auto Closer

Automatically opens previous perspective when debugging ends.

行为:(可配置:首选项->调试透视图自动关闭器


  1. [默认值]当所有调试启动均已终止时,对首次启动时活动的透视图的更改

  2. 在任何调试启动终止时,对该启动时活动的透视图的更改


如果要避免一开始就切换到Debug,可以选择从不作为选项(当时在Eclipse 3.2中引入)。

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).

(您可以在运行/调试>透视图中找到给定的首选项页面/ code>)

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

如果要在调试程序正常终止的情况下切换回去(不是在要自行停止调试的情况下),则您可能希望Eclipse指出您的程序正常终止并切换到当时的默认透视图……

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...

但是,没有默认透视图的概念,那么Eclipse如何知道要切换到哪个? (首选项/透视图/默认设置仅用于打开透视图对话框,但与调试后实际要切换回的透视图可能并不相同)

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)

另外,Eclipse应该关闭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天全站免登陆