This Visual Studio Code extension allows users to quickly add variables to the Watch panel while debugging. It works both from the Debug Variables Context Menu and by selecting variables directly in the editor.
Features
Right-click on a variable in the Debug Variables panel and select "Add to Watch with Address" to track its memory address.
Highlight a variable in the editor, then use the command to add it to the Watch panel.
Supports C/C++ debugging and other languages with evaluation support.
Installation
Clone this repository or download the extension.
Run npm install to install dependencies.
Start the extension in a development environment using F5 in VS Code.
(Optional) Package the extension with vsce package and install it manually.
Usage
Start a debugging session in VS Code.
Right-click a variable in the Debug Variables panel and select "Add to Watch with Address" (if available).
Alternatively, select a variable in the editor and use the command from the Command Palette (Ctrl + Shift + P).
The variable will appear in the Watch panel with its memory address.
Development & Contribution
Modify extension.ts to improve functionality.
Run npm run watch to compile changes in real-time.