6.26.2008

Viewing trace() output

Viewing the output of trace() messages can be tricky.


On Windows XP:

1. Install the debug Flash player. You will know you have it installed if you right-click on a Flash application and see "Debugger" as an option.
2. Create an mm.cfg file in C:\Documents and Settings\. The file contents should include:
ErrorReportingEnable=1
TraceOutputFileEnable=1
3. Create an empty flashlog.txt file in C:\Documents and Settings\Application Data\Macromedia\Flash Player\Logs\
4. Run your app and you will find the output in the flashlog.txt file


On Windows Vista:

1. Install the debug Flash player. You will know you have it installed if you right-click on a Flash application and see "Debugger" as an option.
2. Create an mm.cfg file in C:\Users\. The file contents should include:
ErrorReportingEnable=1
TraceOutputFileEnable=1
3. Create an empty flashlog.txt file in C:\Users\\AppData\Roaming\Macromedia\Flash Player\Logs\
4. Run your app and you will find the output in the flashlog.txt file


You can also use the FlashTracer Firefox plugin found at http://www.sephiroth.it/firefox/flashtracer/ which will show the output in a browser sidebar. In the plugin options panel you will need to select the flashlog.txt file as the output file.