Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to switch to the debug perspective from a new debugger launch?(I need the eclipse debug framework to switch to the debug perspective.)
How to switch to the debug perspective from a new debugger launch? [message #1802239] Mon, 04 February 2019 17:52 Go to next message
Eclipse UserFriend
HI! I'm creating a debugger and I can not figure out a way to get the "perspective switch" message to show up. That is, lets say I am in the java perspective and run a 'java application' in debug mode. In this case, a dialog will pop up asking if I want to switch to the debug perspective. When a user launches the debugger I'm creating, how can I get that same dialog if I'm not in the debug perspective?
Re: How to switch to the debug perspective from a new debugger launch? [message #1802254 is a reply to message #1802239] Tue, 05 February 2019 06:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi

IIRC it happens automatically, or rather it happens as specified by the switch to debug perspective preference.

BUT only if the PerspectiveManager is running. I therefore call the following 'helper'.

/**
* Load a DebugUI class to ensure the PerspectiveManager is ready to create a Perspective
*/
public static void loadPerspectiveManager() {
DebugUITools.class.getName();
}

Regards

Ed Willink

Re: How to switch to the debug perspective from a new debugger launch? [message #1802272 is a reply to message #1802254] Tue, 05 February 2019 11:32 Go to previous message
Eclipse UserFriend
HI! Thanks for the suggestion! It is *supposed* to switch automatically as I understand it. I even have this in my launchConfigurationTabGroup:

<launchMode
mode="debug"
perspective="org.eclipse.debug.ui.DebugPerspective"
description="some description.">
</launchMode>

I tried your suggestiong and it didn't help. I have to wonder if I'm not firing the correct debug event at suspend time which will tell the PerspectiveManager that it needs to prompt for a switch to the debug perspective.
Previous Topic:JUnit 5 Slowdown at 57%
Next Topic:Using a windowbuilder project
Goto Forum:
  


Current Time: Tue Jul 08 05:25:41 EDT 2025

Powered by FUDForum. Page generated in 0.31285 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top