4

Does anybody know how to inspect the value of matrices or vectors when debugging programs using the Eigen Library in MS-Visual Studio?

3 Answers3

5

For newer versions of VS (2012 and higher) download eigen.natvis and simply add it to your C++ project (as described here)

Niki
  • 15,188
  • 5
  • 41
  • 72
0

As explained here there is an extension file in debug/msvc for that purpose.

ggael
  • 25,464
  • 2
  • 48
  • 62
  • 1
    As described in the linked wiki, I tried adding visualizer.dat into autoexp.dat for MSVC 2015 after the [Visualizer] section, but it didn't work. After restarting MSVC the Eigen matrices and vectors are as opaque as always. – Joe Oct 16 '15 at 18:05
0

@Joe: For VS2015, you need to use .natvis file, not autoexp.dat.

Woody20
  • 621
  • 8
  • 22