ColdFire 1.2.89.89

This version is an update to both the Firefox extension and the coldfire.cfm ColdFusion debugging template. Below are the highlights for this release:

Better Variable Formatting

Prior to this release we were using the JavaScript Dump Method from NetGrow. While this worked, it was less than ideal because the NetGrow code is designed for debugging JavaScript, not ColdFusion variables that happened to be serialized in JavaScript. So for this release I've rewritten the variable dumping code using Firebug's domplate templating engine, with the end result being that the output in variables tab should match that of <cfdump>.

Fallback to Classic or Dockable Debugging Templates

I've gotten this request from a few people so I finally added it to this release. You can now configure coldfire.cfm to include the classic or dockable debugging templates when the ColdFire extension is not available. To do this you just need to make a small tweak to the coldfire.cfm. If you want to fallback to the classic.cfm template, just change the hard coded condition on line 44:

<!--- Set to true if you would like to fall back to classic.cfm --->
<cfelseif false>
<cfinclude template="classic.cfm" />

The same is true for dockable, just change the condition on line 48:

<!--- Set to true if you would like to fall back to dockable.cfm --->
<cfelseif false>
<cfinclude template="dockable.cfm" />

</cfif>

Once you make one of the above changes users will see the alternate debugging output if they are using a browser other than Firefox, or if they have the ColdFire extension disabled. (In other words, if you enable an alternate debugging template you can no longer "hide" debugging info.)

Variable Traces and Trace Categories

Before this release the trace panel only displayed output from text traces, i.e. <cftrace text="Hello" />. Variable traces, i.e. <cftrace var="myVar" />, were not encoded by the coldfire.cfm debugging tempalte and thus were not displayed by the extension. This release fixes that and also adds support for the category attribute, so if you happen to assign your trace a category it will show up in the Category column under the Trace tab.

That's it for this release. I already have a few ideas for the next release, but if you have something you really want to see in ColdFire let me know.

Comments
Dan G. Switzer, II's Gravatar @Nathan:

It seems that the coldfire plug-in for Firebug v1.1 is missing. I only see the one for Firebug 1.2. The readme doc states their should be a version for each Firebug.
# Posted By Dan G. Switzer, II | 9/16/08 9:15 AM
Dave Ferguson's Gravatar I just installed the latest version and ran into a couple issues. The first is that he variables section is always blank. The second is in the general tab. The system I am working on has a custom 404 handler. In our enviornment there is an image call that that generates a 404. This is expected but it seems to trip up coldfire. More often than not the request dropdown only lists this image call and nothing else.

--Dave
# Posted By Dave Ferguson | 9/16/08 9:55 AM
Nathan Mische's Gravatar Hi Dan, I did not package the older versions of ColdFire in this release because Firebug 1.2 is now out of beta. I guess I forgot to update the docs to reflect that. (Unfortunately RIAForge doesn't allow for multiple downloads, so we don't really have an archive.)

If you need a version compatible with 1.1 let me know and I'll send it your way.
# Posted By Nathan Mische | 9/16/08 10:02 AM
Nathan Mische's Gravatar @Dave, can you post an issue to the bug tracker.
# Posted By Nathan Mische | 9/16/08 10:03 AM
Dan G. Switzer, II's Gravatar @Nathan:

Yeah, I still do a ton of testing in FF2 (it's still pretty much my default dev browser.) Oddly enough, it has the largest browser share in our application--so I stick to it for development. So I still use Firebug 1.1 (since 1.2 does not work in FF2.)
# Posted By Dan G. Switzer, II | 9/16/08 10:07 AM
Nathan Mische's Gravatar @Dan, I've attached the final 1.1 release to this blog post: http://coldfire.riaforge.org/blog/index.cfm/2008/4...

Note, I'm not maintaining this version so there are no updates, but it is there if you need it.
# Posted By Nathan Mische | 9/16/08 10:33 AM
Seraph's Gravatar I use coldfusion debugging mainly for seeing the values of the Session, Application, Form and URL (and sometimes Request) Scope Variables. Having to add each variable to the list and then having to reload the page defeats the purpose of having debug info IMO. Reloading the page can change the variable values.

I have tried changing the coldfire.cfm file (where it enums the variables into a query) but it does not work. I suspect there are changes to be done to the xpi as well?

Is there anything I can do to make it show all the Application, Session, Form and URL variables?
# Posted By Seraph | 10/10/08 1:30 AM
Seraph's Gravatar Aah, I see that adding the scope names as variables returns a dump of the structure (I see you went to great lengths making it look like the coldfusion dump - nice!) - I did try this before my last post, but for some reason it did not work - no worries, it is working now.

I do still have a question - if you would be so kind as to answer please...
Just like CFDump, I see you can click on the keys and they expand and collapse.
Is there a way to make the dump "collapsed" by default?
# Posted By Seraph | 10/10/08 1:56 AM
Seraph's Gravatar I think people are going to be upset with me posting so much :( - Sorry - I am really keen on getting this to work for me.

From page to page, the list of variables that I specify dissapears from page to page. Is this to be expected, or is it a bug? - It unfortunately still requires a refresh of the page if it keeps disappearing on each new page.
# Posted By Seraph | 10/10/08 2:52 AM
Nathan Mische's Gravatar It is expected that you have to enter variables for each page. If you'd like to see something different please post a enhancement request to the bug tracker: http://coldfire.riaforge.org/index.cfm?event=page....

As for collapsed structure dumps, I'm not sure of an easy way to do that. Again, if it is something you would really like to see please put in an enhancement request and I will investigate it. (The enhancement requests make sure I don't forget about anything when I have time to work on ColdFire.)
# Posted By Nathan Mische | 10/10/08 8:58 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006.