29

Is there such a thing as a "D-Bus sniffer" ?

I would like to "sniff" all (or part) of the messages transiting on D-Bus.

Philip Withnall
  • 5,293
  • 14
  • 28
jldupont
  • 93,734
  • 56
  • 203
  • 318
  • This is one of those candidates for closing because "this doesnt have a real answer". I'm glad the mods haven't found it yet. – Paul May 11 '19 at 01:00

4 Answers4

36

The Ubuntu dbus package includes a program named dbus-monitor which seems to do what you want.

innaM
  • 47,505
  • 4
  • 67
  • 87
15

If you are looking for a gui with execution possibility try D-Feet

somebody
  • 161
  • 1
  • 5
10

Bustle ( http://willthompson.co.uk/bustle/ ) will help you visualise the flow of messages over the bus. This uses the same basic mechanism as dbus-monitor to monitor the traffic.

From the website:

"Bustle draws sequence diagrams of D-Bus activity, showing signal emissions, method calls and their corresponding returns, with timestamps for each individual event and the duration of each method call. This can help you check for unwanted D-Bus traffic, and pinpoint why your D-Bus-based application isn't performing as well as you like. It also provides statistics like signal frequencies and average method call times."

Rob Bradford
  • 1,440
  • 12
  • 17
3

Qt has a graphical D-Bus browser called qdbusviewer.

LaPriWa
  • 1,787
  • 1
  • 12
  • 19