Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:panel_plugin_debug [2008/09/05 11:50] – use changes from DE page w3lly | howto:panel_plugin_debug [2012/11/26 12:59] (current) – removed nick | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Panel Plugin Debugging ====== | ||
- | An easy way to debug an external panel-plugin with Valgrind : | ||
- | |||
- | * In / | ||
- | * 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 | ||
- | |||
- | * Now you are able to use tail -f / | ||
- | |||
- | {{wiki: | ||
- | |||
- | |||
- | ===== Alternative way ===== | ||
- | Edit your .desktop file of the plugin (for most easy results, directly in the source directory) and append .valgrind to the xfce-exec line. Then create a file like described above, but named xfce4-my-plugin.valgrind in the same location and make the .valgrind script executable as well. | ||
- | |||
- | {{wiki: | ||
- | |||
- | Pay attention to edit the xfce-exec line before checking into subversion or making a release. | ||
- | |||
- | ===== More senseful call to Valgrind ===== | ||
- | |||
- | '' |