How to add an action to the debugger toolbar?

I need to add an action to the debug toolwindow toolbar. I've tried
this kind of thing:

ActionGroup debugger = (ActionGroup)
ActionManager.getInstance().getAction( "DebuggerToolbar" );

In order to do something like:

if( debugger instanceof DefaultActionGroup )
{
DefaultActionGroup dag = (DefaultActionGroup) debugger;
dag.add( ... );
}

But "debugger" always comes back null. I forget where I got the
"DebuggerToolbar" string, but it's either not the right one or
impossible to use this way.

Anyone have any hints?

Thanks!
- Paul

0
1 comment

20 years later… but maybe useful to someone

Works for me:

<add-to-group group-id="XDebugger.ToolWindow.TopToolbar3"
              relative-to-action="Rerun"
              anchor="after" />

0

Please sign in to leave a comment.