Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>StatusBar DebuggerNew to Visual Studio Code? Get it now.

StatusBar Debugger

Fabio Spampinato

fabiospampinato.com
|
18,493 installs
| (13) | Free
Adds a debugger to the statusbar, less intrusive than the default floating one
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

StatusBar Debugger

Logo

Adds a debugger to the statusbar, less intrusive than the default floating one.

If you have Debug Launcher installed this extension will use it.

Install

Follow the instructions in the Marketplace, or run the following in the command palette:

ext install fabiospampinato.vscode-statusbar-debugger

Usage

Just start/stop a debugging session and it will detect it.

It adds a "bug" icon and the name of the current debug session to the statusbar, you can use it to toggle debugging. This can be customized via the statusbarDebugger.template setting. Once a debugging session has started the usual actions will appear next to it.

Settings

Most of these settings require a window reload in order for them to take effect.

{
  "statusbarDebugger.template": "$(bug) [name]", // Template used for rendering the statusbar item, by default a "bug" icon and the name of the current debug session
  "statusbarDebugger.command": "auto", // Command to execute when clicking the "bug" icon. Possible values are: - "start": always start the active configuration - "select": always ask to select the configuration - "auto": execute `debugLauncher.auto` (provided by the Debug Launcher extension) or start debugging if it detects only one configuration or ask for a selection if there are more than one. If a debug session is active the command will always be to stop debugging
  "statusbarDebugger.actions": ["pause", "continue", "step_over", "step_into", "step_out", "restart", "stop"], // List of enabled actions' buttons
  "statusbarDebugger.actionsIcons": ["❙❙", "$(triangle-right)", "$(arrow-right)", "$(arrow-down)", "$(arrow-up)", "$(mail-reply)", "$(primitive-square)"], // Icons for the actions' buttons
  "statusbarDebugger.activeColor": "", // The color of the statusbar item when debugging
  "statusbarDebugger.alignment": "left", // Should the item be placed to the left or right?
  "statusbarDebugger.priority": -10 // The priority of this item. Higher value means the item should be shown more to the left
}

Demo

Demo

Hints

  • Disable the default floating debugger: set "debug.toolBarLocation": "hidden" in your settings to disable the default, intrusive, debugger.
  • Disable the default debug launcher: set "debug.showInStatusBar": "never" in yout settings to disable the default debug launcher present in the statusbar.
  • Icons: here you can browse a list of supported icons. If for instance you click the first icon, you'll get a page with .octicon-alert written in it, to get the string to use simply remove the .octicon- part, so in this case the icon name would be alert.

Related

  • Debug Launcher: Start debugging, without having to define any tasks or launch configurations, even from the terminal.

Contributing

If you found a problem, or have a feature request, please open an issue about it.

If you want to make a pull request you can debug the extension using Debug Launcher.

License

MIT © Fabio Spampinato

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft