Debugging cgi-scripts: Difference between revisions
From genomewiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
to your .bashrc (if using bash). | to your .bashrc (if using bash). | ||
You might need to make clean; make cgi afterwards. | You might need to make clean; make cgi afterwards. | ||
Also make sure that the CGIs use the right hg.conf. | Also make sure that the CGIs use the right hg.conf. Run | ||
export HGDB_CONF=<PATHTOCGIS>/hg.conf | export HGDB_CONF=<PATHTOCGIS>/hg.conf | ||
Then: | Then: | ||
cd cgi-bin | cd cgi-bin |
Revision as of 21:41, 30 April 2013
See also:
- README.debug in the source tree
- Debug the cgi-scripts with GDB
Complete instructions:
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. Run
export HGDB_CONF=<PATHTOCGIS>/hg.conf
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.
To get a stacktrace
break errAbort run 'hgsid=4831549&c=chr4&o=111542364&t=111542367&g=spMut&i=iridogoniodysgenesis+2' where