I would like to know if there exists any way to interact programmatically with the vs code debugger during a session. Python would be ideal, but JS/TS could also work. For the langages being debugged (if relevant) would be C/C++ and Fortran.
My goal would be for instance to be able to dump some variables to a file with their values at different points of execution (like a trace), without having to alter the code or even detailing the structures myself (the debugger would allow this kind of 'reflection' for the structure, listing all the fields for me).
My current setup is working on Windows, targeting "cppvsdbg". I had left that point out because I was hoping to find a vscode-level solution, not caring so much about the backend: just query VS Code which already did the job of talking to the underlying debugger.