4 ms·
As I understand it, you can plug in the qt pretty printers from https://invent.kde.org/kdevelop/kdevelop/-/tree/master/plugins/gdb/printers https://invent.kde.o
by gnud 5y ago
As I understand it, you can plug in the qt pretty printers from https://invent.kde.org/kdevelop/kdevelop/-/tree/master/plugins/gdb/printers https://invent.kde.org/kdevelop/kdevelop/-/tree/master/plugi...
- nyanpasu64 5y agoHow do I use these pretty printers outside of KDevelop? When I source that file from my global .gdbinit, I get the classic Python relative import error: ModuleNotFoundError: No module named 'qt' Changing KDevelop's gdbinit to `from .qt import register_qt_printers` results in: ImportError: attempted relative import with no known parent package The problem is that sourcing KDevelop's gdbinit doesn't let Python import packages relative to that file. Is there an alternative way to do this?
- gnud 5y agoI've never actually used these, I just knew they existed. I found them via DuckDuckGo, in the github repository of qBittorrent. They have a step-by-step guide for using them, without mentioning kdevelop: https://github.com/qbittorrent/qBittorrent/wiki/Setup-GDB-with-Qt-pretty-printers https://github.com/qbittorrent/qBittorrent/wiki/Setup-GDB-wi...