Collection of debug pretty printer for arcana libraries
In QtCreator > Tools > Options > Debugger > Locals & Expressions > Extra Debugging Helpers
Enter path to qtcreator/printers.py
Based on Qt Debugging Helpers
Note: "raw" gdb pretty printer don't work or at least not well with qtcreator, thus a separate implementation
The Qt debugger python api can be a bit obscure, but these resources helper:
- https://doc.qt.io/qtcreator/creator-debugging-helpers.html
- https://github.com/qt-creator/qt-creator/tree/master/share/qtcreator/debugger
- https://github.com/qt-creator/qt-creator/blob/master/share/qtcreator/debugger/dumper.py
There seems to be (undocumented) support for plot and image data
- Dumper.py has a
putPlotData
function that callsputDisplay
withplotdata:separate
- The forum post https://forum.qt.io/topic/47370/debug-helper-for-visualizing-images indicates the possibility as well
Example ~/.gdbinit
:
python
import sys
sys.path.insert(0, '/path/to/arcana-pretty-printer/')
from arcana.printers import register_arcana_printers
register_arcana_printers()
end