0
votes

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"