Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
CF-Talk
Cold Fusion - Technical
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Cold Fusion :
product's home
product's list home
 
  Archived TallyList / CF-Talk: 
Subject: Re: Oh that's just great.
pan (37p/+2r)     Posted: Monday 23 Apr 2001
This post: 89 views, +0 rating

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>


Similar Subject Line Posts (+/- two weeks of this post)
RE: Oh that's just great.  23 Apr 2001   (48 v/ +0 r)
Re: Oh that's just great.  23 Apr 2001   (55 v/ +0 r)
Re: Oh that's just great.  23 Apr 2001 (this post)   (89 v/ +0 r)
RE: Oh that's just great.  23 Apr 2001   (45 v/ +0 r)
RE: Oh that's just great.  23 Apr 2001   (44 v/ +0 r)
Re: Oh that's just great.  23 Apr 2001   (49 v/ +0 r)
Oh that's just great.  23 Apr 2001   (54 v/ +0 r)
 

Send a reply to the CF-Talk list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000