ColdFusion debug output is returned to Flex apps as part of the ResultEvent (as of beta 3 of CF 7.0.2). Of course, CF debugging must be enabled. This example does a simple text dump of returned debug information:
public function ResultHandler(event:ResultEvent):void
{
Alert.show(mx.utils.ObjectUtil.toString(event.message.headers));
}

3 thoughts

  1. Does this mean that it returns deep structure data or is this like the debugging feature offered in DreamWeaver? This is of interest to me because it would be great to have this not only in Flex… but imagine getting an IDE for building regular CF apps that could do real debugging! Could you give me just a few more details?

  2. John,
    The data is being returned for AMF requests, so I guess as long as Flash Remoting was being called then sure, other IDEs could get the data too.
    But keep in mind that there is a simpler way. The special Dreamweaver support is just a custom debug handler, and you can create your own one just like it (or based on it) for any other IDE.
    — Ben

  3. Great… I will certainly try this out if I can find a link to the docs on the topic or an example. Do you have one of those? I am sure that others would be interested in that also… and it must be somewhere, but haven’t found it yet.

Leave a Reply