FWIW, in the debug player if you do: var e:Error = new Error(); trace(e.getStackTrace()) it will dump the entire stack. I suppose you could parse that and cut it down and copy that same template into every method header, but it will also slow you down.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Protsiuk Sent: Thursday, March 29, 2007 6:34 AM To: [email protected] Subject: Re: [flexcoders] debug compile and trace statements Traces are not stripped from swf even if debug='false'. All you need to check that is to have debug flash player installed. Output is stored (on my Windows machine, the latest version of flash player) in: C:\Documents and Settings\<username>\Application Data\Macromedia\Flash Player\Logs\flashlog.txt. R. On 29 Mar 2007 06:08:41 -0700, Steve Gilchrist <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Hi, I like to pepper my code with a heap of trace statements so I can see execution flow. When I go to deploy to production I compile with debug=false. Are the trace statements stripped out / ignored or do they still execute? Also is there any way to get trace to output the function it is running in automagically. I'm wondering if there is a short cut for the below: public function myMethod():void { trace(this+".myMethod"+"some variables"); } 'this' gives the object name but I have to hand code the myMethod(). Thanks S

