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.


5 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…

  4. 4 ylluminate Jun 24th, 2010 at 8:19 am

    I’d just play it safe and pop it into /Users/username/Library/Application Support/Macromedia/mm.cfg and then just create two symbolic links:
    `ln -s ~/Library/Application\ Support/Macromedia/mm.cfg /Library/Application\ Support/Macromedia/`
    `ln -s ~/Library/Application\ Support/Macromedia/mm.cfg ~`

    I like this method because I’m sure I’ll be keeping my mm.cfg backed up and it is in the other possible locations where it may be looked for since we have this seeming general confusion…

  5. 5 drunkcat Jun 25th, 2010 at 2:31 am

    I use “de MonsterDebugger”, it’s great AIR app to debug logs and much more (even change values of vars at runtime) from my flash/flex swf’s.

    check it: http://demonsterdebugger.com/