Debugging Parallel GENESIS Scripts
Source Level Debugging
There is no source level debugging of Genesis scripts, instead one can
set the debug level to provide more or
less detailed information about what is being executed in a Genesis
script. pGenesis will follow this model - a "pdebug" level for pGenesis is
under development.
Currently it is possible to run the worker nodes inside their own
xterm window. This is achieved by providing the "-debug tty" flag to
the pgenesis shell script which
controls how pGenesis is run. In this case it is important that the
paron command in the Genesis script
not be given the -output flag, which redirects worker output to
a file instead of stdout.
It is also possible on some platforms to run the workers and the
master under a C code source level debugger such as gdb or dbx. For
dbx the master and each worker run inside their own window, as for
the "-debug tty" option, but each runs inside dbx. For gdb, the
master and each worker run inside their own window which is running
emacs, with gdb running inside emacs. These options are specified to
the pgenesis shell script using
"-debug dbx" and "-debug gdb" respectively.
Script modifications for debugging
In additon to adding more echo statements to the scripts, the following
ideas may be helpful.