I never new I needed an improved cfdump - Adobe sh...
# adobe
j
I never new I needed an improved cfdump - Adobe should read this: https://dev.to/gamesover/coldfusion-dump-alternative-347b Thanks @gamesover !
👍🏻 1
👍 8
m
This is ridiculously sexy and I love it. @Charvi check this out!
@nimitsharma
r
That is pretty dang awesome
d
Nice!
s
I remember when cf_dump became cfdump, and how much I missed this functionality in almost every other language. I'll be taking a look!
❤️ 1
h
This is cool. Only functionality it's missing (or maybe I'm just not seeing it) is the ability to collapse by default like writeDump has in the expand attribute:
writeDump(var=foo,expand=false);
g
I miss the collapsed feature too and reported that to the maintainer back in April 2022. It hasn't been added yet. Please go to the github project and vote it up. https://github.com/kwaschny/cf_dump/issues/8
❤️ 2
p
This looks really useful! I'll need to try cf_dumping the entire Masa (CMS) scope and see if this UDF can avoid bringing an entire development server to its knees, the way the built-in cfdump does 😆
m
We have enhanced the writeDump functionality for Java classes to provide more detailed information in the upcoming CF25 release.
I encourage ColdFusion users to log an ER if you'd like the enhancement to be included in writeDump().
m
Heck, I'll write it lol. @mukumar is there documentation on WHAT exactly was added in CF25 regarding CFDump? And is that in the current beta drop so I can test it?
OK ER added to beta site. 😉
m
@Mark Takata (Adobe) When dumping java class information,
WriteDump
will display the following details: a. Metadata about the Java class b. Metadata about the constructors c. Exception type information d. Methods from the superclass Yes, We can try few examples in current Beta drop. Pl. compare the behaviour in CF23 and CF25 Beta drop. Let me know how it looks.
Copy code
Example 1: 
<cfscript>
  myStr = "myString";
  writedump( myStr.getClass() );
</cfscript>
==========================================
Example 2: 
<cfscript>
  boolVal = true;
  writedump( boolVal.getClass() );
</cfscript>
============================================
Example 3: 
<cfscript>
  intVal = 10;
  writedump( intVal.getClass() );
</cfscript>
=================================================
Example  4:
<cfscript>
    myArray = ["apple", "banana", "orange"];
    writedump(myArray.getClass());
</cfscript>
❤️ 1
m
Rad, thank you sir! ❤️