Feb
16
2006
CFDUMPing the Variables scope
Don't ask me why I never tried this before... I've always just done a <cfoutput>#myVar#</cfoutput> when I needed to find out what a local variable value was. This often meant scattering them all over my page to figure out what piece of code I got wrong... I finally decided I'd just try dumping the local variable scope, and wallah voila! I get a full dump of every local variable on the page, including queries, available functions, the whole bit. I don't know why I never tried that before...
<cfdump var="#Variables#" label="Local Variables" />