Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| panel_plugin_debug [2006/12/19 01:27] – created 68.189.175.230 | panel_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 / | ||
| - | 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=/ | ||
| - | |||
| - | * 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 / | ||