QuickStart‎ > ‎

EchoDebugLog

An example of the Debug output generated by the echo example called with a GET request:
http://www.mydata.com/cgi-bin/fcgiecho.exa?City=NewYork&Zip=10023
(see here for configuring IIS for multiple FastCGI Applications)


This will return to the Users Web Browser:
ReqCount: 2
'GET' Data:
City=NewYork&Zip=10023



If FCGX_DEBUG is specified as the last parameter in the call to FCGX_Accept_r(), then a Debug file:
C:\FCGIdebug\6de80c925fe9_FCGI_Dbg.txt
 will be generated (your drive and filename may vary) containing something like:


-------- DEBUG BEGIN ---------
Version= 2.093

05-03-2009 19:14:11 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Init
COMPUTERNAME = IISDATA-SERVER
_FCGI_SHUTDOWN_EVENT_ = 624
_FCGI_X_PIPE_ = \\.\pipe\IISFCGI-e91568a4-c521-445e-ba95-6de80c925fe9


ConnMode = FD_PIPE_SYNC_IIS
05-03-2009 19:14:11 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Request 1
--> PipeIn  Record: 1
   Version       = 1
   ContentType   = FCGI_BEGIN_REQUEST
   RequestId     = 1
   ContentLength = 8
   PaddingLength = 0

--> PipeIn  Record: 2
   Version       = 1
   ContentType   = FCGI_PARAMS
   RequestId     = 1
   ContentLength = 1458
   PaddingLength = 0

--> PipeIn  Record: 3
   Version       = 1
   ContentType   = FCGI_PARAMS (Termination)
   RequestId     = 1
   ContentLength = 0
   PaddingLength = 0

--> PipeIn  Record: 4
   Version       = 1
   ContentType   = FCGI_STDIN (Termination)
   RequestId     = 1
   ContentLength = 0
   PaddingLength = 0

HTTP_HOST+REQUEST_URI = www.mydata.com/cgi-bin/
fcgiecho.exa?City=NewYork&Zip=10023


<-- PipeOut Record: 1
   Version       = 1
   ContentType   = FCGI_STDOUT
   RequestId     = 1
   ContentLength = 89
   PaddingLength = 7

<-- PipeOut Record: 2
   Version       = 1
   ContentType   = FCGI_STDOUT (Termination)
   RequestId     = 1
   ContentLength = 0
   PaddingLength = 0

<-- PipeOut Record: 3
   Version       = 1
   ContentType   = FCGI_END_REQUEST
   RequestId     = 1
   ContentLength = 8
   PaddingLength = 0

05-03-2009 19:14:11 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Request Complete

05-03-2009 19:14:16 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Request 2
--> PipeIn  Record: 1
   Version       = 1
   ContentType   = FCGI_BEGIN_REQUEST
   RequestId     = 2
   ContentLength = 8
   PaddingLength = 0

--> PipeIn  Record: 2
   Version       = 1
   ContentType   = FCGI_PARAMS
   RequestId     = 2
   ContentLength = 1487
   PaddingLength = 0

--> PipeIn  Record: 3
   Version       = 1
   ContentType   = FCGI_PARAMS (Termination)
   RequestId     = 2
   ContentLength = 0
   PaddingLength = 0

--> PipeIn  Record: 4
   Version       = 1
   ContentType   = FCGI_STDIN (Termination)
   RequestId     = 2
   ContentLength = 0
   PaddingLength = 0

HTTP_HOST+REQUEST_URI = www.mydata.com/cgi-bin/
fcgiecho.exa?City=NewYork&Zip=10023


<-- PipeOut Record: 1
   Version       = 1
   ContentType   = FCGI_STDOUT
   RequestId     = 2
   ContentLength = 89
   PaddingLength = 7

<-- PipeOut Record: 2
   Version       = 1
   ContentType   = FCGI_STDOUT (Termination)
   RequestId     = 2
   ContentLength = 0
   PaddingLength = 0

<-- PipeOut Record: 3
   Version       = 1
   ContentType   = FCGI_END_REQUEST
   RequestId     = 2
   ContentLength = 8
   PaddingLength = 0

05-03-2009 19:14:16 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Request Complete

05-03-2009 19:14:26 - IIS SIGTERM Received
DLL_PROCESS_DETACH

------- DEBUG END --------



Comments