Sometimes it’s more efficient to “tail -f” a log file rather than set breakpoints in your authoring environment. This is kind of an “old school” technique for Flash developers and was absolutely necessary for debugging ActionScript “back in the day”. But today this is still a very valuable debugging technique, especially if you are debugging a timing issue.
To do this you need to create a file called
"mm.cfg" in the following location:
C:\Documents and Settings\username\mm.cfg
Add the following lines to the file:
Load your swf with trace statements and in the following location you should (eventually) see a file called “flashlog.txt”:
C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs
For up-to-date locations of the mm.cfg, the log file, and other properties you can set in the mm.cfg file see this page from Adobe.
If you are having problems getting the player to write to flashlog.txt, make sure you have the debug version of the player installed, you can get Flash Player versions here:
"mm.cfg" file: make sure it is in the correct place and if you created it with TextEdit for example, make sure it has no RTF stuff in it (open it with
"vi" in a terminal window).
You can also watch the log file via the Mac OS X Console app. Windows users can search Google for a utility called “WinTail” which gives you “tail -f” functionality in a command window.