Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Adding to "Debug As..." sub menu?
Adding to "Debug As..." sub menu? [message #334718] Wed, 25 February 2009 14:06 Go to next message
Toralf Lund is currently offline Toralf LundFriend
Messages: 70
Registered: July 2009
Member
Is there any way I can add additional "shortcuts" to the "Debug As..."
submenu (under "Run" and the right-click menu for a binary file)?

Specifically, for a C++ application I get one entry by default - "Local
C/C++ application". I'd really like to have "C/C++ Postmortem debugger"
and "C/C++ Attach to Local Application" as well - so that I won't have to
add special debug configurations for each and every program to get access
to these (very useful) debug options.

I can't seem to find anything about this, or the "Debug as" menu in
general in the debug documentation, but perhaps I'm looking at the wrong
place...
Re: Adding to "Debug As..." sub menu? [message #334756 is a reply to message #334718] Thu, 26 February 2009 09:38 Go to previous messageGo to next message
Hitesh  is currently offline Hitesh Friend
Messages: 19
Registered: July 2009
Junior Member
Have you seen the "org.eclipse.debug.ui.launchShortcuts" extension point
and the interfaces org.eclipse.debug.ui.ILaunchShortcut and
ILaunchShortcut2?
Re: Adding to "Debug As..." sub menu? [message #334760 is a reply to message #334756] Thu, 26 February 2009 10:41 Go to previous messageGo to next message
Toralf Lund is currently offline Toralf LundFriend
Messages: 70
Registered: July 2009
Member
No...

I'm not sure I follow you. Are you saying that I have to add or modify a
plugin to do this kind of thing? I was rather hoping I could configure a
"link" between the menu and other GUI items, like "Debug configurations",
from within the GUI itself...

- Toralf
Re: Adding to "Debug As..." sub menu? [message #334761 is a reply to message #334760] Thu, 26 February 2009 13:16 Go to previous messageGo to next message
Hitesh  is currently offline Hitesh Friend
Messages: 19
Registered: July 2009
Junior Member
Toralf Lund wrote:

> No...

> I'm not sure I follow you. Are you saying that I have to add or modify a
> plugin to do this kind of thing? I was rather hoping I could configure a

If you wanted a Launch-shortcut to appear in the run and/or debug sub
menus, you would have to declare an extension to this point. This is a
task for a plug-in developer.

> "link" between the menu and other GUI items, like "Debug configurations",
> from within the GUI itself...

> - Toralf

If the plug-in developer had provided such a shortcut, it would have been
available in the run/debug sub menu. Since you are looking for C/C++
launch shortcuts, this sounds like a feature request for CDT. You may
discuss this on the CDT newsgroup :
http://www.eclipse.org/newsportal/thread.php?group=eclipse.t ools.cdt

Hitesh
Re: Adding to "Debug As..." sub menu? [message #334762 is a reply to message #334761] Thu, 26 February 2009 13:40 Go to previous message
Toralf Lund is currently offline Toralf LundFriend
Messages: 70
Registered: July 2009
Member
Hitesh wrote:

> Toralf Lund wrote:

>> No...

>> I'm not sure I follow you. Are you saying that I have to add or modify a
>> plugin to do this kind of thing? I was rather hoping I could configure a

> If you wanted a Launch-shortcut to appear in the run and/or debug sub
> menus, you would have to declare an extension to this point. This is a
> task for a plug-in developer.
OK. Fair enough.

>> "link" between the menu and other GUI items, like "Debug configurations",
>> from within the GUI itself...

> If the plug-in developer had provided such a shortcut, it would have been
> available in the run/debug sub menu.
What I was trying to say, is that it seems to me it should be possible to
have a menu like "Debug as" automatically pick up the configuration types
available from "Debug Configuration" (and similarly for "Run as"/"Run
configuration"), without the need for a "shortcut" definition as such. But
maybe that's yet another feature request...

> Since you are looking for C/C++
> launch shortcuts, this sounds like a feature request for CDT. You may
> discuss this on the CDT newsgroup :
> http://www.eclipse.org/newsportal/thread.php?group=eclipse.t ools.cdt
Yeah, maybe I'll ask there, and/or check the appropriate component in
Bugzilla...

Thanks,

- Toralf
Previous Topic:RCP Release Strategy
Next Topic:Loading xml files from jars at the runtime
Goto Forum:
  


Current Time: Tue Jul 16 10:16:37 GMT 2024

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

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

Back to the top