Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| panel_plugin_debug [2007/01/29 10:25] – 145.8.220.125 | panel_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 / | ||
| - | 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 / | ||