This is an old revision of the document!
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 as usual
Note. 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