[Xfce4-commits] <xfce4-weather-plugin:master> Update README with new debugging section.
Harald Judt
noreply at xfce.org
Sun Aug 19 10:08:07 CEST 2012
Updating branch refs/heads/master
to 00ac7601625dfc77ccdd6ffb1fab730419c3cd83 (commit)
from 85120d293792d5cd883d0901e06d3335745a5d49 (commit)
commit 00ac7601625dfc77ccdd6ffb1fab730419c3cd83
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Aug 18 23:40:01 2012 +0200
Update README with new debugging section.
README | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/README b/README
index bcda783..6330e28 100644
--- a/README
+++ b/README
@@ -8,3 +8,42 @@ http://api.met.no/license_data.html
Especially for information about the different types of data, please
read the FAQ:
http://api.yr.no/faq.html
+
+
+DEBUGGING AND REPORTING BUGS
+==========================================================================
+Before reporting bugs or asking for new features, please consolidate
+the Xfce bug tracker at https://bugzilla.xfce.org and check the TODO
+file, because your issue or request might have been reported already
+or be in planning. However, feel free to add any information not yet
+mentioned that you find useful.
+
+If you encounter problems like crashes or weird behaviour, it might
+prove insightful to enable panel debugging as follows:
+
+1) Quit the current running panel instance using 'xfce4-panel -q'.
+2) Set the PANEL_DEBUG environment variable to 'weather' or 'all':
+ export PANEL_DEBUG=weather
+3) Start the panel and let it write its output to a file, e.g.:
+ xfce4-panel > panel.log 2>&1 & disown
+4) Watch output using tail -f or less or whatever you like:
+ tail -f panel.log
+
+This will make the plugin explain what it's currently doing and dump
+data it downloaded from the various sources. More information about
+debugging panel plugins can be obtained from several pages of the Xfce
+Wiki at https://wiki.xfce.org.
+
+It's also relatively easy and often very helpful to create a backtrace
+using gdb or any other debugger should the plugin crash:
+
+1) Find the process ID of the weather plugin with something like
+ 'pgrep -f libweather.so'. Let's assume the resulting PID is 1234.
+2) Attach the GNU debugger to that process: 'gdb attach 1234'.
+3) The plugin will be frozen now. Tell the debugger to let it continue
+ with the 'cont' command.
+4) Produce the crash if possible, or wait until it crashes.
+5) GDB will detect the crash and freeze the plugin again. Use 'bt' to
+ print a nice backtrace. Report the issue to the Xfce bugtracker at
+ https://bugzilla.xfce.org, providing the backtrace.
+6) 'quit' exits the debugger.
More information about the Xfce4-commits
mailing list