Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howto:panel_plugin_debug [2009/01/25 12:02] – 88.172.125.130 | howto:panel_plugin_debug [2012/06/22 18:28] – landry | ||
---|---|---|---|
Line 21: | Line 21: | ||
#!/bin/sh | #!/bin/sh | ||
valgrind --log-file=$HOME/ | valgrind --log-file=$HOME/ | ||
- | / | + | / |
* Now you can add the plugin " | * Now you can add the plugin " | ||
Line 46: | Line 46: | ||
#!/bin/sh | #!/bin/sh | ||
- | gdb -ex r -ex bt -ex q --args / | + | gdb -ex r -ex bt -ex continue |
> $HOME/ | > $HOME/ | ||
Line 62: | Line 62: | ||
Again, the plugin must already be loaded for this to work. | Again, the plugin must already be loaded for this to work. | ||
+ | |||
+ | ===== Temporarily capturing messages to stdout and stderr ===== | ||
+ | |||
+ | * Add the plugin to the panel | ||
+ | * Exit the panel: | ||
+ | |||
+ | $ xfce4-panel -x | ||
+ | |||
+ | * Start panel capturing stdout and stderr to file. Note that this will capture all messages from the panel, including all plugins, to ' | ||
+ | |||
+ | $ xfce4-panel > file 2>&1 & disown | ||
+ | |||
+ | * When done capturing, exit the panel and start it again: | ||
+ | |||
+ | $ xfce4-panel -x | ||
+ | $ xfce4-panel & disown | ||
====== Some tips ====== | ====== Some tips ====== |