Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to debug programs remotely when using D-Bus on Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

How to debug programs remotely when using D-Bus on Raspberry Pi

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 477 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StoatPatronus
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved