Using trace() in Flex

2009 January 8
by vijaymathew

Here is a quick tip for those who develop Flex applications without Flex Builder. You can still use trace() to write logging/debugging information. For this to work, a file called mm.cfg must be created in C:\Documents and Settings\$USER$\ (/home/user/ in Linux and /Library/Application Support/Macromedia/ in OSX). Make the following entries in this file:

ErrorReportingEnable=1
TraceOutputFileEnable=1

Load the SWF in the standalone FlashPlayer (debug version) and the input of calls to trace() will be pumped to C:\Documents and Settings\$USER$\Application Data\Macromedia\Flash Player\Logs\flashlog.txt (home/username/Macromedia/Flash_Player/Logs/flashlog.txt in Linux and /Users/username/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt in OSX).

No comments yet

Leave a Reply

You must be logged in to post a comment.