C++, GDB: Cannot evaluate function -- may be inlined

Viewed 472

I'm debugging a program with gdb: gdb --args ...
I added a breakpoint to check the new variables(vectors) that have the right dimensions,
p myvector.size(), works ok but when I try to do:

p myvector.at(i) to check the values(which would be helpful) gdb answers:

Cannot evaluate function -- may be inlined

Does anyone have any hint or idea?

0 Answers
Related