Programing

Eclipse에서 디버깅 된 프로세스를 종료 한 후 Perspective를 다시 변경하는 방법은 무엇입니까?

lottogame 2020. 11. 22. 18:53
반응형

Eclipse에서 디버깅 된 프로세스를 종료 한 후 Perspective를 다시 변경하는 방법은 무엇입니까?


기본적으로 Eclipse는 중단 점에 도달하면 자동으로 디버그 퍼스펙티브로 전환됩니다.

그러나 프로세스를 종료 할 때 이전 관점 (예 : Java)으로 자동으로 다시 전환되지 않는다는 점이 짜증납니다.

아무 것도 실행되지 않기 때문에 디버그 할 항목이 없더라도 디버그 관점에서 유지됩니다.


마크의 대답을 완료하기 위해이 옵션은 프로그램 일시 중지시 연관된 퍼스펙티브로 전환 할시기를 Eclipse에 알려줍니다. 즉, 중단 점이 적중하면 디버그 퍼스펙티브로 전환됩니다.

디버깅을 마친 후 다른 관점으로 다시 전환하는 것은 다음과 같아야합니다.

원근 자동 닫기 디버그

디버깅이 끝나면 자동으로 이전 Perspective를 엽니 다.

동작 : (구성 : Preferences -> Debug Perspective Auto Closer)

  1. [기본값] 모든 디버그 실행이 종료되면 처음 실행시 퍼스펙티브가 활성화됩니다.
  2. 디버그 시작이 종료되면 해당 시작에 대한 퍼스펙티브 변경

자바 관점

처음에 디버그로 전환하는 것을 피하려면 옵션으로 "안함"을 선택할 수 있습니다 (당시 Eclipse 3.2에서 도입 됨).

(에서 주어진 Preferences페이지를 찾을 수 있습니다 . Run/Debug > Perspective)

대체 텍스트

디버깅 된 프로그램 (하지 않을 때 일반적으로 종료 위치를 상황에서 다시 전환하려면 당신이 스스로 디버깅을 중지 할), 당신은 이클립스가 파악 희망 수 프로그램의 종료 정상적으로 스위치 그 시간에 "기본"관점에. ..

그러나 "기본"관점에 대한 개념이 없으므로 Eclipse가 전환 할 항목을 어떻게 알 수 있습니까? ( "Preferences / Perspectives / Make default"는 "Open Perspective"대화 상자에만 해당되지만 디버그 후 실제로 다시 전환하려는 Perspective와 동일하지 않을 수 있음)

열린 관점

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.


Ctrl + F8, the default shortcut to change views, reduces the pain a bit.


I filed a bug for this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=327983


you would need to write eclipse plugin

here i found example how in plugin switch perspective


As of 2015, this very basix UI woe is not addressed in Eclipse: the official bug report is assigned (but not fixed).

Fortunately, Sven Ramuschkat and Dirk Eismann wrote a plugin for that: the Perspective Switcher Plugin for Eclipse / Flash Builder

the Plugin will now automatically switch back from a Debug perspective to the previous non-Debug perspective as soon as the Debug session is terminated

It works on Eclipse Luna (and above)

Installation

Download the zip file , uncompress and copy the jar file in your eclipse/plugins folder.

Once it's done, you will see a new Preference pane.

pref

디버깅 세션이 종료 될 때 또는 파일이 열려 Java있는 경우 Eclipse에서 다시 Perspective 로 전환하도록 모든 것이 구성 됩니다.javaproperties


이클립스를 자동으로 다시 전환하는 것이 가능하지 않다고 생각하지만 창 오른쪽 상단에있는 버튼을 클릭하면됩니다.

여기에 이미지 설명 입력

참고 URL : https://stackoverflow.com/questions/521442/how-to-change-back-the-perspective-after-terminating-the-debugged-process-in-ecl

반응형