Bug 147238 - Debugger doesn't display Qt4-QString values as readable character strings
Summary: Debugger doesn't display Qt4-QString values as readable character strings
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.4.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 12:07 UTC by Klaus D. Günther
Modified: 2007-06-26 14:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus D. Günther 2007-06-26 12:07:33 UTC
Version:           3.4.1 (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
Compiler:          gcc 4.1.2 
OS:                Linux

I have checked out the kdevelop sources from the kde3.5 SVN branch and compiled them manually, and I have used kdevelop then to compile our Qt4 app with "g++ -gstabs+", which enables kdbg to display readable Qt4 QString values, but not so the kdevelop debugger.

I have noticed also that kdevelop doesn't even display the class "QString" of a QString variable as a little popup as it does otherwise when the mouse cursor is over the variable
name in the variable output window.

So I suppose that kdevelop doesn't fully recognize the type of Qt4 QString variables and for this reason isn't able to display a readable QString value.

Another annoying effect:

Both kdbg and kdevelop need unacceptable long times (15-30 seconds) to step into function calls in many cases (but not always).

Summary of my configuration: Kubuntu Feisty, gcc 4.1.2, gdb 6.6, kdevelop 3.4.1 from SVN.
Comment 1 Andreas Pakulat 2007-06-26 12:32:40 UTC
KDevelop doesn't need any special gcc flags to display Qt4 QStrings, it knows how Qt4 QStrings internal structure looks like and uses that to create a visible string in the variable view.

It works fine for me here.

The slowness for stepping is most probably gdb's fault (or more exactly the interface that gdb provides for IDE's)
Comment 2 Klaus D. Günther 2007-06-26 14:39:00 UTC
Sorry, I've discovered only now that there is a C++/Qt Support settings panel now where you have to enable Qt3/4 support explicitly.

Except for the very annoying delays when stepping into function calls, everything works fine now.