Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 gdb 调试程序:gdb --args ... 我添加了一个断点来检查具有正确尺寸的新变量(向量) p myvector.size(),工作正常,但是当我尝试这样做时:
gdb --args ...
p myvector.size()
p myvector.at(i) 检查值(这会很有帮助) gdb 答案:
p myvector.at(i)
无法评估函数——可能是内联的
有没有人有任何提示或想法?