Debugging cgi-scripts: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:
   cd cgi-bin
   cd cgi-bin
   gdb hgc
   gdb hgc
   run
Paste the parameters from your browser like this:
   run 'hgsid=4777921&c=chr21&o=27542938&t=27543085&g=pubsDevBlat&i=1000235064'
 
To not forget the quotes, do not include the question mark.

Revision as of 22:00, 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=<PATHTOCGIS>/hg.conf

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

 cd cgi-bin
 gdb hgc

Paste the parameters from your browser like this:

 run 'hgsid=4777921&c=chr21&o=27542938&t=27543085&g=pubsDevBlat&i=1000235064'

To not forget the quotes, do not include the question mark.