27
Jan
09

Tips - Debugging Flex applications with flashlog.txt on a Mac

Debugging Flex applications with mm.cfg and flashlog.txt let us track trace statements and error messages for projects running in the browser using the debug mode. Since I haven’t done it since 2001 I completely forget what to do and came across couple of issues, so I figured I’ll throw a post for other people that may have the same issue.

You first need to create the txt file and directories here:
/Users/YourUserName/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt

Then you need to create the mm.cfg file in both location:
/Library/Application Support/Macromedia/mm.cfg
/Users/YourUserName/mm.cfg

Then paste the follwing code in the mm.cfg:
ErrorReportingEnable=1
TraceOutputFileEnable=1
MaxWarnings=0

Initially, I pasted the code only in the first directory and couldn’t get it to work, not sure why, so place the file in both directories to play it safe.
I am running the Flash Debug Player 10, on Mac OS X.

To see the messages as they come on Terminal, navigate to the flashlog directory and type in:
tail -f flashlog.txt

I Hope you find this tip handy.


3 Responses to “Tips - Debugging Flex applications with flashlog.txt on a Mac”


  1. 1 OptimusPaul Apr 21st, 2009 at 10:49 am

    I think that Adobe breaks this with every Flash Player update. I can’t get it to work for me at all.

  2. 2 Markjuh May 13th, 2009 at 4:52 am

    I had to restart Safari to get it to work. Reloading the application wasn’t enought.

  3. 3 Jesse Freeman Feb 23rd, 2010 at 5:18 pm

    Just a heads up it looks like you only need to put the mm.cfg in /Users/YourUserName/mm.cfg and not in both places on a Mac. Your millage may vary…