Skip to content

weinand/augmented-debug

Repository files navigation

Augmented-debug README

This sample extension shows how a vscode.DebugAdapterTracker can be used to augment a debug session with additional information.

The following screencast shows a new scope "GPU" in the VARIABLES view that is fed by the extension. The underlying C++ debugger is unmodified and completely unaware of this.

Additional GPU section in VARIABLES view

The complete source is here.

Run the Sample

  • run git clone https://github.com/weinand/augmented-debug.git
  • run cd augmented-debug
  • run npm install
  • run code .
  • install the C++ extension
  • F5 -> new window opens
  • in new window press F5 -> debugger breaks on line 4 and VARIABLES view shows a "GPU" scope
  • expand GPU scope -> 3 registers are shown
  • continue stepping -> registers under GPU update their values

Please Note:

The vscode.DebugAdapterTracker API was designed to tap the communication between VS Code and debug adapters. It was not designed to modify messages in transit. So this example actually shows a use case that is not officially supported.

However, we are currently working on another (similar) API that supports intercepting and modifying DAP messages. And as long as this API is not a part of the official VS Code extension API (i.e. vscode.d.ts), we will continue to support the "unofficial" use case.

1.0.0

Initial release.

About

Augment any debugger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published