RIA Debugging and ColdFusion (forgotten feature)

Some of you might remember Simeon Simeonov from the early days of ColdFusion. He was one of the original engineers and the architect of ColdFusion at Allaire. Needless to say, he is responsible for many of your favorite features in ColdFusion.

Sim, has recently posted a great blog post about the problems debugging RIA applications. And a possible solution. Definitely worth a read.

http://simeons.wordpress.com/2008/09/16/debugging-ria-ajax-flex-services/

However, there is one more way to do debugging missing from his post (unless it's been updated). One of the last things I added to ColdFusion 7.0.2 before I left Adobe was to make sure all of the ColdFusion debug data is sent with every Flash Remoting request.

This is one of the more common forgotten features in ColdFusion. If you are using ColdFusion with Flex, you can still get all of the information you are used to seeing at the bottom of a regualar .cfm. To turn this on, just turn on debugging in the cfadmin. And then in your result event, you can look at the result event header to see all of this information; sql, execution times, variables, etc..

Way back when, on mikenimer.com I posted a flex dump component that does know how to format this debug data. However, to be honest. I haven't opened the component in the latest versions of flex so the component might need to be tweak to work in flex 3.

But that's no excuse not to monitor this data. With RIA apps it's more important than ever to monitor your requests. It's too easy to write a bad query and not know it, since you can't easily see this debug data. But it's worth a little extra work.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Chris Martinez's Gravatar This couldn't come at a better time. I'm having an issue with Flex VOs not working correctly with ColdFusion CFCs. I'm using ServiceCapture to watch what is sent to the server and the response. Watching the VO go in, I see that the date in the VO is 10/11/2008. On the CFC side, using cfdump to a a PDF, I see that the date is changed to 10/10/2008. Very strange. I can't seem to figure this out, but hopefully I can work with the host to see if they can turn on debugging for me. Please email me back if you have any suggestions on how to fix this.

Thanks,
Chris Martinez
# Posted By Chris Martinez | 10/13/08 1:59 PM
mike nimer's Gravatar Chris,
you might of figure this out by now. but check the time zones betweenn the client and the server. Dates in flash have the full GMT info in them. So flash will shift the date to format in the local time zone.
hth,
---mike
# Posted By mike nimer | 10/16/08 12:18 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001.