That looks very helpful.  Thanks.
 
-S 

From Paul Reilly who made many improvements to the Debug Player

 

I believe the Flex debug player that shipped with Flex 1.5, prints a stack trace for each warning.  There is no way to programmatically dump a stack, though.  To get line numbers and file names, all you have to do is load as SWD with the SWF (note from Matt, this means make the request ?debug=true).  I added a nicelittle gem to mm.cfg to automatically suppress the debugger dialog, so that you can request the SWF with a SWD without having to opt out of the debugger each time.  Here is the necessary mm.cfg settings:

 

  TraceOutputFileEnable=1

  ErrorReportingEnable=1

  SuppressDebuggerDialog=1

 

There is also a setting for turning on dumping a stack for each

trace() statement:

 

  TraceLocationEnable=1

 

Using this with a trace() statement is pretty much a programmatic stack dump, but if there are lots of other trace() statements, this gets pretty chatty.

 

 

HTH,

Matt

 


From: Steve Pruitt [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 7:27 AM
To: [email protected]
Subject: [flexcoders] stack trace

 

All,

 

Is there a way to dump a stack trace during execution?  Without using the debugger.

 

 

-S




Reply via email to