Debugging:CGI programs

From SPCTools

Revision as of 23:19, 28 August 2006; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

Many programs have different behavior when run from within the webserver context versus the command-line. In order to simulate the webserver enviroment in standard debugging (with gdb, etc.):

(from bash):

export REQUEST_METHOD=GET
export QUERY_STRING='<<copy and paste from your browser everything after the question-mark>>'
Personal tools