Friday, August 29, 2008    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< May 2006 >>
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

Categories
 • Acrobat (1) [RSS]
 • Adobe (66) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (21) [RSS]
 • AIR (125) [RSS]
 • Appearances (118) [RSS]
 • Books (68) [RSS]
 • CFEclipse (14) [RSS]
 • ColdFusion (1140) [RSS]
 • Data Services (12) [RSS]
 • Flash (102) [RSS]
 • Flex (362) [RSS]
 • Home Automation (2) [RSS]
 • Jobs (91) [RSS]
 • JRun (12) [RSS]
 • Labs (27) [RSS]
 • LiveCycle (21) [RSS]
 • MAX (156) [RSS]
 • Regular Expressions (12) [RSS]
 • RIA (4) [RSS]
 • SQL (37) [RSS]
 • Stuff (503) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (135) [RSS]
 • Wireless (97) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Day : May 29, 2006 / Main
May 29, 2006

Accessing CF Debug Output In Flex

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));
}

TrackBacks
There are no trackbacks for this entry.

No trackback URL. Trackbacks are only allowed via interactive form.

Comments
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?
# Posted By John Farrar | 5/30/06 5:10 PM
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
# Posted By Ben Forta | 5/30/06 5:36 PM
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.
# Posted By John Farrar | 5/30/06 8:00 PM

  © Copyright 1997-2008 Ben Forta, All Rights Reserved