Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
panel_plugin_debug [2007/01/29 10:25] 145.8.220.125panel_plugin_debug [2007/12/08 18:02] (current) – removed 88.172.125.130
Line 1: Line 1:
-====== Panel Plugin Debugging ====== 
- 
-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