Reputation: 1
When I'm debuging in vsCode (on Linux) I want to see what my Eigen::VectorXd actually has in Store. So I tried it with this Eigen.natvis https://github.com/cdcseacave/Visual-Studio-Visualizers/blob/master/Eigen.natvis
and the launch.json file looks like this
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++-9 - Build and debug active file",
"visualizerFile": "${workspaceFolder}/natvis/Eigen.natvis",
"showDisplayString": true,
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/bin/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++-9 build active file",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
but the the the Debug Window still only shows this Run and Debug Variables
and the DebugConsole isn't very helpfull Debug Console
In short, i wish for an easy way to see all variables of the Eigen::VectorXd inside the "Run and Debug Window"
Upvotes: 0
Views: 617
Reputation: 68
As written in Developer's Corner and Visual-Studio-Visualizers at github Eigen debug visualizers is for Visual Studio and not for VS Code.
To benefit from the Visual Studio visualizers, you must be using Visual Studio (e.g. version 2022). For more help on the Visual Studio Visualizers, see learn.microsoft
Upvotes: 1