Quote:
I've been a little frustrated with users when I give them my code. For one, they doesn't seem smart enough to realise that when they test the code they should at least fix it. Instead they tell me in excruciating datal what they did...
|
Seriously though GDB does show you the contents of the string, in excruciating detail, and the value you're interested in is typically the last part. The bit in quotes, that is the content. If you use a wrapper like kdbg then it breaks the output down to show you the actual content.
I think it really depends on what people are looking for in a debugger. gdb is very powerful and in my experience using the c_str() or data() doesn't work, I think it is to do with how the data is dynamically allocated within the string.
But if your only problem is that the display of string data isn't pretty then I doubt that is a real problem. Learn to use it. Play with the breakpoints, watchpoint, and run little scripts at a breakpoint.
graeme.