Can one use cfdump inside a cfcomponent?
Can one use cfdump inside a cfscript?
I know the anser is no then how can one emit the values of the functions insde cfcomponent
cfscript?
I am using CF8
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, with some caveats. If you use a CFDUMP followed by CFABORT, the dump will be displayed whether or not the component/method has output turned off. That does, of course, abort all processing.
Not exactly (unless you’re using CF9), but there are workarounds.
You can close your script, put in the dump tag, then re-open it, like so:
There is also a UDF at CFLib that mimics the CFDUMP tag.
Dump
Added: In CF9 or later, there is also writeDump().