This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The link below has a screen shot which shows the problem http://www.nabble.com/NetBeans-doesn%27t-show-Qt-variables-correctly-td25008862.html (a picture is worth 1000 words) In short, the debugger displays garbage for QString and QStringList. I don't know of any Q variables which display correctly, but I gave an example with these 2. Thanks, Ilan
Created attachment 86332 [details] picture of badly displayed Q variables
Yes, NetBeans does not convert Qt types to human-readable form. (Although I wouldn't call it garbage :) There is a simple workaround. Download file http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/kde-devel-gdb?revision=992325 and add line source /path/to/kde-devel-gdb to your ~/.gdbinit.
Created attachment 86342 [details] same picture with correct MIME type
It seems that one more step is needed to get friendly values of Qt types. Besides adding kde-devel-gdb to .gdbinit, Qt variables should be evaluated with appropriate gdb macros defined in kde-devel-gdb, not with -data-evaluate-expression. ValuePresenter technique is not enough, because desired friendly value can't always be extracted from its default representation. Look at QString value on the screenshot. CND debugger infrastructure needs to be extended to allow prettyprinting of Qt types. There is no simple workaround. A hardcore workaround would be to enable gdb console and issue gdb commands manually to print desired variables.
Yesterday I tried again Qt-Creator as the "natural" debugger to display qt variables. I tried it on our Rosegarden project and not the simple Hello World. I was surprised to see that it didn't do any better than NetBeans at showing qt variables. It shows them in the same @d style as NetBeans, giving no real information. I'm wondering if there could be 2 separate problems here: 1) NetBeans display of qt variables and 2) something in our makefile. I will attach the makefile for inspection. If there are suggestions I can continue to compare NetBeans and Qt-Creator to try to narrow down where the problem lies. (Personally, I find NetBeans much more useful than Qt-Creator, which I find difficult to use.)
Created attachment 87576 [details] makefile
It's not for 7.0.
see also CR#7088700