I am trying to debug a C++ program using Eclipse CDT:
#include <vector>
using namespace std;
int main() {
vector<int> test (4,100);
return 0;
}
If I place a breakpoint to debug, and I click "Display as Array..." for my vector variable I get the following error:
(*((test)+0)@4) Error: Multiple errors reported.\ Failed to execute MI command: -var-create - * (*((test)+0)@4) Error message from debugger back end: No symbol "operator+" in current context.\ Unable to create variable object
How can I view the values of my arrays while debugging?
I am using:
-g3 and -O0)Eclipse can, see the snapshot and the instructions here and here. This post helped me out as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With