Debugging dbus communication

Thiago Macieira thiago at kde.org
Sun May 5 17:49:40 PDT 2013


On domingo, 5 de maio de 2013 22.14.48, László Monda wrote:
> On Sun, May 5, 2013 at 5:26 PM, Thiago Macieira <thiago at kde.org> wrote:
> > On domingo, 5 de maio de 2013 11.44.38, László Monda wrote:
> >> Basically I'd like to be able to list the subscribers of such
> >> messages.  How is this possible?
> > 
> > It's not possible to list them.
> > 
> > To get the list, you need to start monitoring the AddRule call from the
> > very beginning (before any rules you're interested in are added).
> 
> Could you please give me some context regarding the AddRule call?
> Like is it part of the dbus source code in which case should I pull
> the source, insert a debug line and build it?

No, use dbus-monitor from very early on. Catch and log every AddRule call.

If you know all the AddRules, all the RemoveRules and all the clients that 
disconnected, you know who is subscribed.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130505/047bc012/attachment.pgp>


More information about the dbus mailing list