Tip : Using cfdump inside CFscript
One simple tip for the day, How to use cfdump inside the cfscript block !!!
cfscript block does not support cfdump tag or indeed any tag inside it. So the trick is to create function which dumps the value using cfdump and call the function inside cfscript by passing the variable as parameter.
See the code
1 2 3 4 5 6 7 | <CFFUNCTION NAME="MyDump"> <CFARGUMENT NAME="OBJ" Required="TRUE"> <CFDUMP VAR="#Obj#"> </CFFUNCTION> <CFSCRIPT> MyDump(Var1); </CFSCRIPT> |
2 Comments to “Tip : Using cfdump inside CFscript”
Post comment
Take it with you!
Recent Posts
- Instant Method Finder : My first Coldfusion Builder extension!
- Create coldfusion builder snippets from cflib repository
- Tip:Difference between resistive and capacitive touch screen.
- Why QR code is cool and easy with smartphones !!!!!
- Tip : Getting unsorted query columns in coldfusion
Categories
- Coldfusion
- Coldfusion Builder
- HTML
- Javascript
- Jquery
- Movies
- Project Management
- Technology
- Tips and Tricks
- whatsNew
Tags
Adventure
Android
augmented
Augumented
avatar
cf8
CF9
cfdump
cfquery
Coldfusion
Coldfusion programming technology features new
compare
comparison
debugging
Definitions
design
Digitization
dynamic
element creation
form
future
getmetadata
HTML
Inspirations
Iphone
Javascript
Jquery
movie
Movies
mustwatch
mx7
new feature
programming
project
Project Management
Reality
realtime
si-fi
Technology
tip
top
tricks
validation
virtual world
web development
Archives
- January 2011 (2)
- October 2010 (2)
- February 2010 (2)
- January 2010 (5)
- December 2009 (5)
CF Libs
- arrayTrim January 31, 2012This method trims an array to the specified number of elements. […]
- longTime January 25, 2012Returns a list like 3 years, 2 months, 12 days, 1 hour, 10 minutes, 45 seconds from a seconds count argument. […]
- quickSort January 15, 2012Implementation of Hoare's Quicksort algorithm for sorting arrays of arbitrary items. […]
- GetHostAddress January 12, 2012Performs a DNS lookup. […]
- GetFileFilterCount January 4, 2012Accepts a directory path & a file filter. Returns number of matching files. […]
- replaceSpecialChars January 4, 2012Replaces all special characters in a string of text. […]
- solrClean December 30, 2011Like VerityClean, massages text input to make it Solr compatible. […]
- rjustify2 December 21, 2011Same as built-in RJUSTIFY, but allows optional parameter character to pad with. […]
- RowColor December 21, 2011Returns alternating color based on list of colors. […]

nerdscubecom

I tried out this, its working fine…
There is a function to use inside cfscript tag:
WriteDump(varToDump);