Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose debug status #30810

Closed
fabiospampinato opened this issue Jul 16, 2017 · 11 comments
Closed

Expose debug status #30810

fabiospampinato opened this issue Jul 16, 2017 · 11 comments
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality

Comments

@fabiospampinato
Copy link
Contributor

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?

@vscodebot vscodebot bot added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 16, 2017
@weinand weinand added feature-request Request for new features or functionality api labels Jul 16, 2017
@weinand
Copy link
Contributor

weinand commented Jul 16, 2017

@fabiospampinato Makes sense. We are working on the debug api right now...

@fabiospampinato
Copy link
Contributor Author

@weinand Great!

@mikeseese
Copy link
Contributor

@fabiospampinato I'm guessing this is what is preventing the issues I created fabiospampinato/vscode-statusbar-debugger#1 and fabiospampinato/vscode-statusbar-debugger#2?

@isidorn isidorn removed their assignment Jul 17, 2017
@fabiospampinato
Copy link
Contributor Author

@seesemichaelj Exactly.

@fabiospampinato
Copy link
Contributor Author

@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
Copy link

@fabiospampinato
Copy link
Contributor Author

@weinand As there been any progress on this?

@hediet
Copy link
Member

hediet commented Feb 23, 2020

You can do this btw. to sniff the communcation between the debug adapter and VS Code.

@EverlastEngineering
Copy link

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
Copy link
Contributor Author

You can do this btw. to sniff the communcation between the debug adapter and VS Code.

@hediet I'm a little late to the party but that looks really interesting, thanks for linking to that.

@weinand weinand modified the milestones: On Deck, Backlog Nov 1, 2022
@weinand weinand removed their assignment Nov 1, 2022
@roblourens
Copy link
Member

I think a DebugAdapterTracker will probably be the best bet here

@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

9 participants