Debugging cgi-scripts
From genomewiki
Jump to navigationJump to search
- README.debug in the source tree
- Debug the cgi-scripts with GDB
Executive summary:
make sure you have compiled with -ggdb by adding
export COPT=-ggdb
to your .bashrc (if using bash). You might need to make clean; make cgi afterwards. Also make sure that the CGIs use the right hg.conf. Add
export HGDB_CONF=<PATHTOCGIS>/hg.conf
to your .bashrc (if using bash). Then:
cd cgi-bin gdb hgc run