Hi,

I'm playing around with the debugger helpers feature, but I can't seem to be
able to add custom helpers.
I'm following this page:
http://doc.qt.nokia.com/qtcreator-snapshot/creator-debugging-helpers.html

which says:
"The function name has to be qdump__NS__Foo, where NS::Foo is the class or
class template to be examined. Nested namespaces are possible."

Well I have a
namespace ns {
struct Abc {
    int i;
    float f;
};
}

and I created a dumper like:
def qdump__cgl__Abc(self, item):
    print 'qdump__cgl__Abc'
    self.putType(item.value.type)
    v = item.value
    self.putValue("(%f %f)" % (v["i"], v["f"]))
    self.putNumChild(0)

print 'Loaded...'

Although I can see the "Loaded..." in the gdb output, I can't get the dumper
to be called.
This is strange because it worked once a while ago but now it doesn't.

Am I doing something wrong here?
How do I set the DebugDebuggingHelpers to true? Maybe that could help me
understand what I'm doing wrong.

Regards,
Paulo
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to