Watching trace statements when running Flash content in the browser
April 2nd, 2009
2 comments
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:
-
ErrorReportingEnable=1
-
TraceOutputFileEnable=1
-
MaxWarnings=0
3) open a terminal window and add this to your .profile file.
CODE:
-
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.
Categories: Flash development, Flex development, OS X
