Lekensteyn / qt5printers

GDB Pretty printers for Qt5
https://bugs.kde.org/show_bug.cgi?id=331044
133 stars 30 forks source link

Cannot pretty print QJsonObject #10

Open ChristopherPisz opened 2 years ago

ChristopherPisz commented 2 years ago

I get the following python errors when trying to view a QJsonObject in the debugger on CentOS7:

gdb.error: Cannot convert value to int.
Traceback (most recent call last):
  File "/opt/rh/devtoolset-8/root/usr/share/gdb/python/gdb/printing.py", line 218, in __call__
    return printer.gen_printer(val)
  File "/home/build/.gdb/qt5printers/core.py", line 397, in __init__
    self.printer = QMapPrinter(gdb.parse_and_eval('((QJsonObject*){:})->toVariantMap()'.format(int(val.address))))
gdb.error: Cannot convert value to int.