Home > Flash development, Flex development, OS X > Watching trace statements when running Flash content in the browser

Watching trace statements when running Flash content in the browser

As Flash and Flex applications get more complex the ability to watch trace statements while running the application in a browser is invaluable. This is how I do it (in OSX):

1) find your mm.cfg file. Mine is located here: ~username/mm.cfg (substitute "username" with your real username)

2) open it in a text editor and add these lines:

CODE:
  1. ErrorReportingEnable=1
  2. TraceOutputFileEnable=1
  3. MaxWarnings=0

3) open a terminal window and add this to your .profile file.

CODE:
  1. alias trace=tail\ -f\ "/Users/username/Library/Preferences/Macromedia/Flash\ Player/Logs/flashLog.txt"

To watch your browser throw trace statements, just open a terminal window and type "trace" and they will now appear in the terminal window.

  1. April 2nd, 2009 at 18:34 | #1

    Or you can use Flash Tracer Firefox plugin or a debugger/logger like DeMonsterDebugger or Arthropod.

    Cheers

  2. May 18th, 2009 at 12:14 | #2

    Very cool approach to this! I use ServiceCapture: http://www.kevinlangdon.com/serviceCapture/

  1. No trackbacks yet.