Debugging qstring

CodeLite installation/troubleshooting forum
CodeLite Curious
Posts: 1
Joined: Sat Oct 04, 2008 7:36 am

Debugging qstring

Post by kroenecker » Sat Oct 04, 2008 7:37 am

Does codelite handle debugging qstring values through gdb?

User avatar
CodeLite Plugin
Posts: 6042
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++

Re: Debugging qstring

Post by eranif » Sat Oct 04, 2008 9:20 am

kroenecker wrote:Does codelite handle debugging qstring values through gdb?
The problem with GDB in general is that it does not handle unicode string (wide chars)

This is the same problem as for wxString. I am using Qt for my daily work and the only way i found to view the content of QString is to add in my code lines like:

Code: Select all

char *p = str.toLocal8Bit().constData();
You can try this:
- From settings -> Debugger Settings add new 'PreDefined Tpye' name it

Code: Select all

and set the value to:

Code: Select all

- Or you can use the memory view tab and add there: 'str.d'

search for it in google, there are many similar questions.

Make sure you have read the HOW TO POST thread

Post Reply