From: "Erika L Walker" <elwalker@ruwebby.com> .. > > HELP! Does anybody out there have a debugging tag? Or let me know what the > quick method is of outputting all the wonderful things we see at the bottom > of the pages when we have debugging turned on? > >
This may not be anything more than a slight stimulus to your thinking, but I have used the below appended code to answer certain debugging needs.
cfinclude this at the top of a template and at the bottom and it will show the state of some vars before page execution and also after page execution.
You should be able to modify it quite a bit.
hope this is of some help
Pan
<cflock name = "AppName" timeout = "5" type = "exclusive"> <cfif NOT StructISEmpty(application)> <cfoutput><strong>APPLICATION VARS</strong><br></cfoutput> <cfset aKeys = StructKeyList(application)> <cfloop index="item" list="#aKeys#"> <cfoutput>#item# = #application[item]#<br></cfoutput> </cfloop> <cfelse> <cfoutput>application struct is empty<br></cfoutput> </cfif> </cflock> <cflock name = "session.sessionID" timeout = "5" type = "Exclusive"> <cfif NOT StructISEmpty(session)> <cfoutput><strong>SESSION VARS</strong><br></cfoutput> <cfset sKeys = StructKeyList(session)> <cfloop index="item" list="#sKeys#"> <cfif(NOT IsSimpleValue(session[item]))> <cfoutput>#item# = <font color="##66ff66">not simple</font><br></cfoutput> <cfelse> <cfoutput>#item# = #session[item]#<br></cfoutput> </cfif> </cfloop> <cfelse> <cfoutput>session struct is empty<br></cfoutput> </cfif> </cflock> <cfoutput><strong>CLIENT VARS</strong><br></cfoutput> <cfset cKeys = GetClientVariablesList()> <cfloop index="item" list="#cKeys#"> <cfset this=evaluate("client." & #item#)> <cfoutput>#item# = #htmleditformat(this)#<br></cfoutput> </cfloop> <cfoutput><strong>COOKIE VARS</strong><br></cfoutput> <cfif NOT (cgi.http_cookie IS "")> <cfoutput>#cgi.http_cookie#<br></cfoutput> <cfelse> <cfoutput>cookie is empty<br></cfoutput> </cfif>