Proper use of dumpit()

Hello All,

I am trying to see the contents of a variable but its within a cfscript block

I get an error when I try.

Error Messages: Variable DUMPIT is undefined.

The line is:

dumpit(rc);

I wanted to make sure I was using dumpit properly and if not, what is the way I need to call it so I can see that variable.

Using CB 3.0

Thanks,

Mal

Mal, always refer to the API for the methods. Dumpit was removed and now they are $dump() methods. Look at the super type API class.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Where is you code? If you’re in a handler then you can use the $dump() method. Something like this:

function index(event){
var rc = event.getCollection();

$dump(rc, true);
}

Thanks!

Still learning… :slight_smile:

Luckily I had read this post before I needed the functionality. However, Luis, I wonder to what API it is you are referring? I am looking at http://www.coldbox.org/api/ . The heading states :



Package



coldbox_3_0_0M5.coldbox.system.core.util



Component



Util



Implements



-



Inheritance



-

image001.jpgThe main ColdBox utility library.

This clearly shows dumpit as a method of Util and does not show any sign of being deprecated. I downloaded and am using 3M5, so it appears that this should be the correct API documentation. I am confused. Where is the correct API documentation to be found?

That utility object is used internally my friend. The API for every handler, interceptor, plugin comes from its base class: FrameworkSuperType.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

image001.jpg

Thanks, Luis, that helps. I didn’t see any connection to FrameworkSuperType from the Util component API. The pointer sure helps. J

image001.jpg