0

I am trying to debug a c++ program from the vs code debug console, and I'd like to access some elements of an armadillo matrix, however when i try to acces the matrix I get the following:

-> matrx.at(0,2)
Cannot evaluate function -- may be inlined
-> matrx(0,2)
Expression of type other than "Function returning ..." used as function

The two ways of acessing wont evaluate, and I'm not sure what's missing. I can access it in the program but not in the debug console, and I have disabled optimization with -O0.

  • Do you use these [gdb helpers for armadillo](https://github.com/darcamo/gdb_armadillo_helpers)? Also see [this answer](https://stackoverflow.com/a/58331708/1983398). – ssbssa Jan 26 '23 at 09:57

0 Answers0