Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:52 Go to next message
Heath Thomann is currently offline Heath ThomannFriend
Messages: 3
Registered: June 2018
Junior Member
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 11:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7669
Registered: July 2009
Senior Member
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 16:32 Go to previous message
Heath Thomann is currently offline Heath ThomannFriend
Messages: 3
Registered: June 2018
Junior Member
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: Mon Sep 09 00:04:39 GMT 2024

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

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

Back to the top