Currently I have to enter -exec -enable-pretty-printing
into vimspector debugger command line (debugging C++ code using vscode-cpptools) to see std::string
as a "string" rather than as a STL container. Could you advice me how to modify my .vimspector.json to run the command automatically on vimspector launch? I tried to google it out but without success... My current .vimspector.json looks like this.
{
"configurations": {
"Vim - run a test": {
"adapter": "vscode-cpptools",
"configuration": {
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/main",
"args": [
"-enable-pretty-printing"
],
"cwd": "${workspaceRoot}",
"environment": [
{ "name": "VIMRUNTIME", "value": "${workspaceRoot}" }
],
"externalConsole": true,
"stopAtEntry": true,
"MIMode": "gdb",
"logging": {
"engineLogging": false
}
}
}
}
}
Thx,
Michal
PS: The mentioning -enable-pretty-printing
as argument in .json file does not work.