This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:development:debugging [2012/09/13 11:07] sunweaver |
wiki:development:debugging [2014/11/12 12:52] sunweaver |
||
---|---|---|---|
Line 13: | Line 13: | ||
</ | </ | ||
- | ===== Debugging x2goserver | + | Other logging locations apart for the system' |
+ | |||
+ | * X2Go Server: / | ||
+ | * X2Go Client: stderr (use --debug) | ||
+ | * PyHoca-GUI: stderr (use --libdebug --debug) | ||
+ | * Xsession itself: $HOME/ | ||
+ | * NX (server-side): | ||
+ | * NX (client-side): | ||
+ | |||
+ | ===== Enable Debug Output | ||
+ | |||
+ | ==== Debugging X2Go Server | ||
The '' | The '' | ||
Line 21: | Line 32: | ||
</ | </ | ||
- | ===== Debugging cups-x2go | + | ==== Debugging cups-x2go ==== |
For debugging cups-x2go there are two files to look at: | For debugging cups-x2go there are two files to look at: | ||
Line 37: | Line 48: | ||
< | < | ||
- | root@x2goserver:~$ editor / | + | root@printserver:~$ editor / |
</ | </ | ||
- | ===== Python X2Go / PyHoca Debugging | + | ==== Debugging X2Go Session Broker ==== |
+ | |||
+ | The '' | ||
+ | |||
+ | < | ||
+ | root@broker: | ||
+ | </ | ||
+ | |||
+ | The log files normally get written to ''/ | ||
+ | |||
+ | You can also run | ||
+ | < | ||
+ | root@broker: | ||
+ | </ | ||
+ | |||
+ | as user '' | ||
+ | ==== Python X2Go / PyHoca Debugging ==== | ||
The PyHoca clients both have a '' | The PyHoca clients both have a '' | ||
Line 50: | Line 77: | ||
Here is a little howto that explains how to add extra log output to X2go server scripts: | Here is a little howto that explains how to add extra log output to X2go server scripts: | ||
- | ==== Logging in X2Go Perl Scripts ==== | + | ==== Logging in X2Go Server' |
- | Whereever you want to write a line to syslog from an X2Go Perl script, place this command: | + | Whereever you want to write a line to syslog from an X2Go Server' |
< | < | ||
Line 59: | Line 86: | ||
- | ==== Logging in X2go Shell/Bash Scripts ==== | + | ==== Logging in X2Go Server' |
Whereever you want to write a line to syslog from an X2Go Shell/Bash script, place this command: | Whereever you want to write a line to syslog from an X2Go Shell/Bash script, place this command: | ||
Line 68: | Line 95: | ||
+ | ==== Logging in X2Go Session Broker' | ||
+ | |||
+ | Whereever you want to write a line to ''/ | ||
+ | |||
+ | < | ||
+ | # at the top of the module file: | ||
+ | from x2gobroker.loggers import logger_broker | ||
+ | # [...] then further below, wherever needed: | ||
+ | logger_broker.debug('< | ||
+ | </ | ||