trace() outside the Flash IDE with tail
As Josh Buhler and Mark Walters described it’s simple to log the trace() outputs of a SWF file running in Browser. If you familiar with Terminal you can also log the trace()-methods by using the Unix command tail.
tail monitors in real time the growth of the logfile named “flashlog.txt” which is being written by the Flash Debug Player.
Instructions
- Check that you installed the Flash Debug Player on your machine successfully.

Press CTRL and click on a Flashmovie located in Browser and you’ll have a context menu with the “Debugger” option like the image above. If not, uninstall the current Player and install the latest version of the Flash Debug Player. - Add a textfile named “flashlog.txt” in the following folder:
/Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/ - The Flash Debug Player needs a textfile named “mm.cfg”. Typically it’s located in /Library/Application Support/Macromedia/mm.cfg. If not, create it and add the following properties:
Note: If you have installed a Flash Debug Player older than version 9.0.28.0 you have to add a path to your “flashlog.txt” as well:-
ErrorReportingEnable=0
-
TraceOutputFileEnable=1
-
MaxWarnings=0
-
-
TraceOutPutFileName=Macintosh HD:Users:{username}:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.txt
-
-
- Open the Terminal and type
tail -f /Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt
That’s it
P.S. If you have any trouble with your configuration, check Mark Walters’ detailed instructions, too.
Congrats to your new blog. Finally! I know there´s plenty of important stuff you have to say! Wish you all the best!
Manfred
Nice blog. I’ve tried setting this up myself, but I simply cannot see Trace statements.
I add them to my Flex app, run the “Build” command in the actionscript 3 bundle, and the app opens in a Textmate html window.
But flashlog.txt is empty, despite the trace statements.
If I run the app in flex builder, I see the statements’ ouput.
Sweet, does anybody know if this works the same for Flash Player 10 Debugger Version?
@JP DeVries: You might have to create the “flashlog.txt” by yourself.
At the wiki for ThunderBolt AS3 on GoogleCode you will find a qick tutorial for the same issue: “Wiki ThunderBolt AS3 Console” -> Known issues -> “flashlog.txt” is not found on OS X (“Leopard”)
-Jens
Why do you like this console stuff at all? This seem to be really unflexible and reaquires lots of tweaking. Why not to try existing flash tracing tools. There are lots of them in internet and really easy to use. Try at least http://code.google.com/p/flash-tracer/