Using DUMP Within CFSCRIPT
Tagged Under : cfscript
I just came across this so I thought I should blog. I always used a custom UDF whenever I had to use dump inside cfscript and because I happen to write most of my code inside CFSCRIPT, I needed it a lot. But Apparently, you can do this as well using the adminapi.
Update : Looks like the security cfc extends the base cfc so it would be more ideal to do this I guess.
That’s a pretty cool tip. Thanks.
Yeah I liked it as well. Looks like this is the only method that doesnt require you to login. All other methods inside the adminapi require you to be logged in. Thats what I found out.
Hi Anug,
Great Tip!.. It even worked when I tried to dump the adminapi variable itselef like this.
adminapi=CreateObject(”component”,”cfide.adminapi.security”);
myvar=”Welcome”;
adminapi.dump(adminapi);
Cool!.
Thanks,
Dav R
Sorry.. I should have typed that as “adminapi” object!.
@Dav, Thats right. DUMP would work on any CF object I guess. Glad you liked it.