Debugging:CGI programs

From SPCTools

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:19, 28 August 2006
Jtasman (Talk | contribs)

← Previous diff
Current revision
Jtasman (Talk | contribs)


Current revision

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