Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can DDD account for strings?

I am trying to figure out a problem in my c++ code and have DDD to debug with on a Sun machine. I am required to use strings per some standard we have. But whenever DDD encounters a string variable, it always comes up as being empty. I want to remember having the same trouble using CVD before on an SGI.
Short of re-writing my code to remove string is there anything else I could try/use?

like image 528
mdeliota Avatar asked Nov 05 '22 16:11

mdeliota


2 Answers

Have a look here

They solve it by implementing a helper function that can be used by gdb (should also work for DDD as it uses gdb)

like image 99
epatel Avatar answered Nov 12 '22 11:11

epatel


p variablename.c_str()

or

display variablename.c_str()
like image 21
Steve Lazaridis Avatar answered Nov 12 '22 09:11

Steve Lazaridis