Jan
20
2011

Debug with the flashlog.txt file

Debugging Flash application needs install Flash player debugger version, there are many debugging tools. If break point isn't required, we can debug with the flashlog.txt file, which can cross domains and hasn't the sandbox issue.

1. Create a text file named flashlog.txt in a particular folder on your system.

  • Macintosh OS X:/Library/Application Support/Macromedia
  • Windows 95/98/ME:%HOMEDRIVE%\%HOMEPATH%
  • Windows 2000 & XP:C:\Documents and Settings\username
  • Windows Vista & 7:C:\Users\username
  • Linux:/home/username 

2. the flashlog.txt file, add these parameters on their own separate lines in the mm.cfg file:

ErrorReportingEnable=1

TraceOutputFileEnable=1

Thus we can send error and some to flashlog.txt.

Note: if the flash player debugger version is lower than 9,0,16,0 or ealier. please add a line in the mm.cfg as: TraceOutputFileName=C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs\flashlog.txt.

Ok, run a Flash application with trace statements and erors, in flashlog.txt we can see the error report and some. The flashlog.txt file is placed in a particular location that differs by operating system.

  • Macintosh OS X:/Users/username/Library/Preferences/Macromedia/Flash Player/Logs
  • Windows 95/98/ME/2000/XP:C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs
  • Windows Vista & 7:C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs
  • Linux:/home/username/.macromedia/Flash_Player/Logs

原文:http://www.riafan.com/article/flash/debug-with-flashlog.txt.html

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading