How 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?
I'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:
nyanpasu64|4 years ago
gnud|4 years ago
https://github.com/qbittorrent/qBittorrent/wiki/Setup-GDB-wi...