> Anyone have a snippet of code that would show all the
> information available when an error occurs?  I am
> looking for something like what CF displays if I wasn't
> using the catch but I will email it to me when it does :)

I prefer to do this (in CFscript)

        messageString="";
        for (i in URL)
        {
                MessageString=MessageString & "URL." & i & "=" & URL[i]
& Chr(13);
        }
        for (i in Form)
        {
                MessageString=MessageString & "Form." & i & "=" &
Form[i] & Chr(13);
        }
        for (i in Request)
        {
                MessageString=MessageString & "Request." & i & "=" &
Request[i] & Chr(13);
        }
        for (i in CGI)
        {
                MessageString=MessageString & "CGI." & i & "=" & CGI[i]
& Chr(13);
        }

        messageBody="";
        messageBody=messageBody & "<b>IP Address/Host</b>: " &
error.remoteAddress & "<br>";
        messageBody=messageBody & "<b>Browser</b>: " & error.browser &
"<br>";
        messageBody=messageBody & "<b>Date and Time</b>: " &
error.dateTime & "<br>";
        messageBody=messageBody & "<b>Referrer</b>: " &
error.HTTPReferer & "<br>";
        messageBody=messageBody & "<b>Message Content</b>:<br>";
        messageBody=messageBody & error.diagnostics & "<br>";

Then CFMAIL both MessageString and MessageBody in a HTML email

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to