Debugging cgi-scripts: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
* [http://hgwdev.cse.ucsc.edu/~kent/src/unzipped/product/README.debug README.debug] in the source tree
* [http://hgwdev.cse.ucsc.edu/~kent/src/unzipped/product/README.debug README.debug] in the source tree
* [https://lists.soe.ucsc.edu/pipermail/genome-mirror/2010-March/001677.html Debug the cgi-scripts with GDB]
* [https://lists.soe.ucsc.edu/pipermail/genome-mirror/2010-March/001677.html 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=~/cgi-bin-max/hg.conf
to your .bashrc (if using bash).
Then:
  cd cgi-bin
  gdb hgc
  run

Revision as of 21:56, 21 March 2013

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=~/cgi-bin-max/hg.conf

to your .bashrc (if using bash). Then:

 cd cgi-bin
 gdb hgc
 run