Dumping object inside cfscript tag

Dumping object inside cfscript tag

I’ve been looking for this a few times now, until now i’ve found two interesting options.

One is creating a cffunction of your own, and using it inside a cfscript afterwards:

    <CFDUMP VAR="#Obj#">

The other one is using a 100% cfscript approach, which can also be placed in a function of your own:

createObject("component", "cfide.adminapi.base").dump(var);

Also, starting ColdFusion 9, you can use the writeDump function.

Cirjan Dragos
No Comments

Post a Comment