Skip to content
loading...

Javascript version of ColdFusion CFDump

twitter logo ・1 min read  

The Dump method is based on one of the tags available in Coldfusion <cfdump> providing the ability to display simple and complex variables in a user friendly way that is perfect for debugging/inspecting data.

Some environments don't allow for CFDump or maybe you want to inspect a javascript object and aren't able to use the browser of your choice. This JavaScript method "Dump()" from 2006 allows you to "CFDump" javascript objects.

Server-Side Example

<cfoutput>
<script>
var t = #serializeJson(server)#;
dump(t);
</script>
</cfoutput>

Source Code

NOTE: This is a 6/21/2013 repost from my Tumblr blog.

twitter logo DISCUSS
Classic DEV Post from Aug 13 '19

How open-source will Tumblr become?

James Moberg profile image
I’m a ColdFusion web application developer at SunStar Media located in Monterey, CA. I am a fan of technology, music and web development.

It's like Medium meets Reddit, but specifically for software developers. Sign up now ❀️

(And we're open source!)