You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've made an extension that puts a debugger into the statusbar, in order to workaround a year-old issue with the default floating debugger widget (#2513#9093) but I cannot quite make it work perfectly because there's no API for getting the status of the debugger.
In order to do that it would be necessary to know:
if a debug session is currently active
when it started/stopped
if code execution is paused
A decent, and maybe more general, starting point might be to expose the switches used in keybindings under the when key, like inDebugMode for instance.
What do you think?
Reacted by Damian, Praveen Potturu, Eric Amodio, Spown, rotenbaron, iulo, Alexander Celeste, Arthur Chumak, Fabio Spampinato, Tzach Shabtay and 3 more
The only thing I wanted and wasn't able to get was whether breakpoints are globally enabled or disabled, but I am able to see status like stopped, paused, initializing, etc.
Activity
weinand commentedon Jul 16, 2017
Fabio Spampinato (@fabiospampinato) Makes sense. We are working on the debug api right now...
fabiospampinato commentedon Jul 16, 2017
Andre Weinand (@weinand) Great!
mikeseese commentedon Jul 17, 2017
Fabio Spampinato (@fabiospampinato) I'm guessing this is what is preventing the issues I created fabiospampinato/vscode-statusbar-debugger#1 and fabiospampinato/vscode-statusbar-debugger#2?
fabiospampinato commentedon Jul 17, 2017
Mike Seese (@seesemichaelj) Exactly.
fabiospampinato commentedon Aug 26, 2017
Andre Weinand (@weinand) Information about compound debugging should be exposed as well, I've got an issue about it (fabiospampinato/vscode-statusbar-debugger#4) which I cannot fix without it.
Can you provide an estimate for when this issue will be resolved?
arthurchumak commentedon Jun 11, 2018
https://code.visualstudio.com/updates/v1_24#_debug-toolbar-location
fabiospampinato commentedon Oct 12, 2018
Andre Weinand (@weinand) As there been any progress on this?
hediet commentedon Feb 23, 2020
You can do this btw. to sniff the communcation between the debug adapter and VS Code.
EverlastEngineering commentedon Jan 2, 2021
You can have a look at my code for this extention which reveals the debug in the titlebar:
https://github.com/EverlastEngineering/debugInTitlebar/blob/master/package.json
The only thing I wanted and wasn't able to get was whether breakpoints are globally enabled or disabled, but I am able to see status like stopped, paused, initializing, etc.
fabiospampinato commentedon Apr 2, 2021
Henning Dieterichs (@hediet) I'm a little late to the party but that looks really interesting, thanks for linking to that.
roblourens commentedon Dec 14, 2023
I think a
DebugAdapterTrackerwill probably be the best bet here