[HOWTO] XDebugger default tab selection (Console)

My debugger implementation based on the xdebugger api seems to prefer selecting the Console tab by default instead of the Debugger tab. i.e. every time i start a new debugging session, the debug toolwindow shows the Console (which is empty in my case). I would rather see the debugger tab with the frames/variables/watchers. Is there a way to decide which tab is to be selected by default, or even decide whether the console tab is to be shown or not?
Appreciate any hint.

0
2 comments
Avatar
Permanently deleted user

Hello,

you need to override XDebugProcess#createTabLayouter method and return your own implementation of XDebugTabLayouter, where registerConsoleContent is
overridden and call the following method from it:

ui.getDefaults().initFocusContent(DebuggerContentInfo.FRAME_CONTENT, LayoutViewOptions.STARTUP);

--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"

0

Great! Works! Thanks a lot

0

Please sign in to leave a comment.