Debugging a panel plugin with valgrind
Enrico Tröger
enrico.troeger at uvena.de
Mon Dec 18 20:12:00 CET 2006
On Mon, 18 Dec 2006 20:41:12 +0100, Jannis Pohlmann <jannis at xfce.org>
wrote:
> On Mon, 18 Dec 2006 09:24:51 +0100, Landry Breuil wrote:
>
> > Hello folks,
> >
> > yesterday, thanks to ori_b on irc, i found an easy way to debug an
> > external panel-plugin with valgrind :
> > - in /usr/local/libexec/xfce4/panel-plugins/ (or where your plugins
> > are installed) rename the panel binary named foo-plugin to
> > foo-plugin.real
> > - create an executable shellscript named foo-plugin in the same
> > place, containing :
> > #!/bin/sh
> > valgrind
> > --log-file=/path/to/valgrind.output /path/to/panel-plugins/foo-
> > plugin.real $@
> > - add the plugin to the panel, it'll be really slow as wrapped in
> > valgrind, but you'll be able to hunt memory leaks using tail -f
> > /path/to/valgrind.output :)
> >
> > Now, what to do with this information ?
> >
> > Brian, you add it to your
> > http://spuriousinterrupt.org/projects/xfce4-debugpage ?
> > I add it to http://wiki.xfce.org/panel_plugin_howto with the gdb -p
> > attach method ?
> > I create a new page xfce_debugging_howto ?
>
> I'd rather add it to the Goodies website (dunno where yet, but this
> could be discussed).
I don't think so. I should be in the wiki on the plugin howto site.
Because it is useful for plugin writers not necessarily for plugin
users who would more likely look on the goodies website.
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20061218/12c3a810/attachment.pgp>
More information about the Xfce4-dev
mailing list