Page 1 of 1

Locals view and hovering view of std::string

Posted: Fri Aug 02, 2013 3:04 am
by Arbalest
CodeLite 5.1 Ubuntu 12.4 under VmPlayer

I followed the instructions in another post regarding the debugger check box for "Use predefined types..."

But still when I look at a string contained within a class I first see lots of std::string internal information and (if I even can) I have to scroll horizontally very far to see what the actual string value. Is this setting supposed to cause the display of just the "payload" of the string?

Re: Locals view and hovering view of std::string

Posted: Fri Aug 02, 2013 9:09 am
by eranif
Use codelite 5.2, and then enable 'Settings -> GDB Settings -> General' and tick the option 'Enable GDB Pretty Printing'

Eran

Re: Locals view and hovering view of std::string

Posted: Thu Sep 05, 2013 11:37 pm
by Arbalest
I've finally upgraded to 5.2 and have ticked "predefined types" and "pretty printing".

But I still have to expand a string about 5 levels before I see it's contents. Is this the intended behavior, or I do I need to to change some other settings?

Re: Locals view and hovering view of std::string

Posted: Fri Sep 06, 2013 9:23 am
by eranif
to be able to view std::string you should have a gdb with python enabled.
Eran

Re: Locals view and hovering view of std::string

Posted: Sat Sep 07, 2013 11:59 pm
by Arbalest
Under "debugger settings" I don't see any specific option to enable Python. But, on the "startup commands" panel the first line is "python".

Is there something else that needs to be done?

Re: Locals view and hovering view of std::string

Posted: Sun Sep 08, 2013 6:21 am
by petah
I used to have the same problem which I resolved by checking the above-mentioned options and unchecking "Auto cast 'car[] into 'char*'".

I have different CL versions on different PCs though, incl. different wx builds (that may or not use std::string for wxString), so there are a number of factors involved, but never came across a show-stopper.

cheers,

-- p