Why does the value of strings
in Eclipse Mars CDT not appear in the expression or variables
windows?
It appears {...}
but i want to see the value itself under the value tab.
How can i do this?
Why does the value of strings
in Eclipse Mars CDT not appear in the expression or variables
windows?
It appears {...}
but i want to see the value itself under the value tab.
How can i do this?
What is going on here is CDT is showing the information that GDB is providing to it.
For a trivial program, with the debugger stopped on the line with return 0;
this is what I see in the CDT variable view:
which matches what I see in GDB:
Pretty Printing C++
However, what I suspect you want is the pretty printers for libstdc++ which makes the variables view look like this:
Create a ~/.gdbinit file with the following contents (updating the path for your machine)
Then point your launch configuration at that gdbinit file and start debugging.