Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
panel_plugin_debug [2006/12/19 01:27] – created 68.189.175.230panel_plugin_debug [2007/12/08 18:02] (current) – removed 88.172.125.130
Line 1: Line 1:
-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