This extension reads out the debugger state when the debugger is paused. It dumps the content of the local window into a JSON file.
How to use the extension
Just start the debugger of your choice (Python, C++, ...). When the software is stopped (e.g. due to a breakpoint), tigger the command "Debug Window Dump". This will extract the current local variables and ask for a output file name, where the result is stored as unformatted JSON (can be formatted afterwards using the "Format Document" command in VSCode).
Note: If you change the current debug function by clicking on a different function in the stack trace. The dump will target the newly active function and extract the local variables of this scope.