Re: [flexcoders] Re: Debugging: general advice

2008-11-11 Thread john fisher
ah, I did not grok that trace() would work with all classes, d'oh, I'll
have to get trace working. I used my own before, but of course it
doesn't work outside the main mxml code.
thanks

Amy wrote:
 -
 I use trace() when it _is_ in the browser, 


[flexcoders] Re: Debugging: general advice

2008-11-11 Thread Amy
--- In flexcoders@yahoogroups.com, john fisher [EMAIL PROTECTED] wrote:

 I read a thread from a few weeks ago, and Amy was using Alert to debug
 in the browser.
 So am I, and its moderately successful, but I wonder if there is a
 better way?
 I: linux, eclipse, flex builder

Actually, I was using Alert because I was NOT in the browser--it was in 
the Flash Player ActiveX control inside an application.  The problem 
was that some interaction between the styles I was using and a Text 
control was hosing the display list (and I never got to the bottom of 
it--I just switched to TextArea), so Alert was failing to come up.  

I use trace() when it _is_ in the browser, but in this case it wasn't 
possible.  I think debugging Flex is an art form--you learn how to 
place your break points so as to avoid the horrible trap in UIComponent 
where step over and step out stop working.

HTH;

Amy