[Solved] LLDB on 7.0 cannot see string values in debugger

CodeLite installation/troubleshooting forum
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: LLDB on 7.0 errors

Post by DavidGH »

Hi,
OK, so these are connected. If I go into LLDB settings -> Types, I see:
type summary add wxString --summary-string "${var.m_impl._M_dataplus._M_p}"
But if I look at the lldb docs, they kinda suggest something more like this:
type summary add std::string --summary-string "${var%S}"
wxString is different, and needs that extra ugliness. What happens if you try a std::string and use the lldb-suggested method?
15:43:40: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
I presume that lldb.conf has sane permissions, and CodeLite is running in the same partition as it?
Apart from that, I'm afraid I don't have any ideas. You really need another Arch user's input.
In the mean time, I need to learn command line debugging anyway..
Heh. There's also gdb, of course.

Regards,

David
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LLDB on 7.0 errors

Post by AbeOwitz »

DavidGH wrote: wxString is different, and needs that extra ugliness. What happens if you try a std::string and use the lldb-suggested method?
Same error.

I noticed if I compiled with anything other than -O0, even with -g, variables wouldn't show up. So, I'm wondering if clang++ isn't producing fully debugable binaries?
DavidGH wrote: I presume that lldb.conf has sane permissions, and CodeLite is running in the same partition as it?
Apart from that, I'm afraid I don't have any ideas. You really need another Arch user's input.
lldb.conf problem is resolved. Editing LLDB config created the file with various settings.

Haven't tried command line LLDB yet...

THanks for the feedback.
Last edited by AbeOwitz on Fri Feb 13, 2015 12:29 am, edited 1 time in total.
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

[SOLVED] Re: LLDB on 7.0 errors

Post by AbeOwitz »

[SOLVED]

Added '-fstandalone-debug' to clang++ compile options. I can now see string values. (Using codelite 7.1 from git on this date.)

Hopefully that helps others as well.

Thanks for the help.
Post Reply