Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to debug programs remotely when using D-Bus on Raspberry Pi
StoatPatronus last edited by
Hello all, this is my first experience with Qt and developing on the Pi. I use Qt Creator on my Linux desktop to cross-compile for the Pi. I've written two programs, a server (based on QCoreApplication) and a GUI client (QML). They communicate via D-Bus. Neither program uses X11, so when I run them manually from a shell on the Pi I do this:
bash$ exec $(dbus-launch) bash$ ./server & bash$ ./client
Since they run in the same shell everything works.
My question is: if I want to debug them remotely with Qt Creator, how do I start a dbus session that they can both share? It seems like it should be easy, but I'm coming from an IntelliJ/PyCharm background and am unfamiliar with Qt Creator's way of doing things.