Skip to content

Expose debug status #30810

Closed
Closed

Description

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?

Activity

  1. added
    debug
    on Jul 16, 2017
  2. added
    feature-request
    on Jul 16, 2017
  3. weinand commented on Jul 16, 2017

    @weinand
    Contributor

    Fabio Spampinato (@fabiospampinato) Makes sense. We are working on the debug api right now...

  4. fabiospampinato commented on Jul 16, 2017

    @fabiospampinato
    ContributorAuthor
  5. mikeseese commented on Jul 17, 2017

    @mikeseese
    Contributor
  6. fabiospampinato commented on Jul 17, 2017

    @fabiospampinato
    ContributorAuthor
  7. fabiospampinato commented on Aug 26, 2017

    @fabiospampinato
    ContributorAuthor

    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?

  8. fabiospampinato commented on Oct 12, 2018

    @fabiospampinato
    ContributorAuthor

    Andre Weinand (@weinand) As there been any progress on this?

  9. hediet commented on Feb 23, 2020

    @hediet
    Member

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

  10. EverlastEngineering commented on Jan 2, 2021

    @EverlastEngineering

    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.

  11. fabiospampinato commented on Apr 2, 2021

    @fabiospampinato
    ContributorAuthor

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

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

  12. roblourens commented on Dec 14, 2023

    @roblourens
    Member

    I think a DebugAdapterTracker will probably be the best bet here

  13. locked and limited conversation to collaborators on Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apidebugfeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions