How to run the extension in the debugger - PeterWone/vscode-arduino-cli GitHub Wiki
- If the extension is installed from a VSIX then uninstall it.
- If you don't already have the repo then clone it to your machine.
- Load the extension project into VS Code.
- Get your dependencies using
npm i
- Switch to debugging and choose "Run extension" then press
F5
or click the run button.
- Another instance of VS Code will start in a special mode with the extension "installed". You can set breakpoints and so forth in the extension code and interact with it.
Interactive debugging is essential for figuring out why exceptions aren't being handled, or (hardest to debug) handled incorrectly leading to weird behaviour.