Updgraded to WordPress 2.1 Favourite FireFox Extensions…

Debugging with Flash Player 9,0,28,0

February 1st, 2007

All the kids are debugging with Flash Debug Player these days, (haven't you heard?)

For those of you that don't know, the Debug version of the player sends trace commands to a text file which you can watch with a variety of tools, but we'll get into that later.

To get the Debug Player visit http://www.adobe.com/support/flashplayer/downloads.html and get the latest Netscape (Firefox) and ActiveX debug players.

With the latest upgrade of Flash Debug Player (9,0,28,0) there's been a few changes to accomodate the wonderful(?) Microsoft Vista, Which imposes certain security restrictions. Please note: this post only relates to Windows.

Adobe have provided documentation for the debug player, and for most people it'll work just fine, however, if you're in a corporate environment no doubt you have a roaming profile and this is where the fun begins.

Previously the environment variables %HOMEDRIVE% and %HOMEPATH% were used by the debug player to find it's settings file mm.cfg. It appears that this is no longer the case (the Adobe livedocs page doesn't tell you this.)

It seems that %USERPROFILE% is now used to determine the location of mm.cfg which will allow you to set the config of Flash Debug Player.

The rest of the information in this LiveDocs page is fine. I'll save you the trip over and give you the rest of the infor. The new fixed location of the Player log file is: %USERPROFILE%\Application Data\Macromedia\Flash Player\Logs\flashlog.txt and within the mm.cfg the settings now available are...

Property

Description

ErrorReportingEnable

Enables the logging of error messages.

Set the ErrorReportingEnable property to 1 to enable the debugger version of Flash Player to write error messages to the log file. To disable logging of error messages, set the ErrorReportingEnable property to 0.

The default value is 0.

MaxWarnings

Sets the number of warnings to log before stopping.

The default value of the MaxWarnings property is 100. After 100 messages, the debugger version of Flash Player writes a message to the file stating that further error messages will be suppressed.

Set the MaxWarnings property to override the default message limit. For example, you can set it to 500 to capture 500 error messages.

Set the MaxWarnings property to 0 to remove the limit so that all error messages are recorded.

TraceOutputFileEnable

Enables trace logging.

Set TraceOutputFileEnable to 1 to enable the debugger version of Flash Player to write trace messages to the log file. Disable trace logging by setting the TraceOutputFileEnable property to 0.

The default value is 0.

As far as setting up your mm.cfg file goes, it's a simple text file.

Using notepad enter the following lines

ErrorReportingEnable=0
TraceOutputFileEnable=1

Then save as the file to %USERPROFILE%/mm.cfg

If everything is working ok you will be able to read trace messages from Flash in the file %USERPROFILE%\Application Data\Macromedia\Flash Player\Logs\flashlog.txt

Log viewers...

There are a number of tools out there to view log files, and there are some which specifically target the Flash Debug Player, however due to the latest changes, many of these no longer work properly...

FlashTracer by Alessandro Crugnola (of SEPY fame) is a FireFox extension which will follow flashlog.txt output. You can get it here

A nice alternative is Log Viewer from BrineSoft a bog standard windows based file watcher.

Of course for the truly hardcore there's the unix tail command, available to windows users via the Cygwin project. If you want to play with that one, it's for command line veterans only.

Hopefully now you can stop mucking about with these XMLSocket or LocalConnection solutions, (or heaven forbid TextField.. I ask you!)

can you Digg it? can you Digg it? is it del.icio.us? is it del.icio.us?

Category: General

11 Comments Add your own

  • 1. Niklas Alvaeus  |  February 26th, 2007 at 11:04 pm

    For Windows Vista this will normally be located in C:\Users\{Your User Name}\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt

    The directory shows up once you installed the debug player.

    Cheers.

  • 2. Jason Milkins  |  February 27th, 2007 at 9:29 am

    As a matter of interest what does %USERPROFILE% resolve to in Vista?

    It should make it easier if people just use the environment variable, as opposed to changing the text {Your User Name}

    from CMD run…

    echo %USERPROFILE%

  • 3. trace(chris.foster) &raqu&hellip  |  April 24th, 2007 at 7:10 am

    [...] mentalaxis » Debugging with Flash Player 9,0,28,0 April 24th, 2007 [...]

  • 4. Alcon 2.0 Public Beta rel&hellip  |  April 29th, 2007 at 9:00 am

    [...] the flashlog.txt file that can be created with the Flash Debug Player (more info on this here and here). - Alcon now features an Inspect panel for inspecting objects. - A hexadecimal dump of an object [...]

  • 5. Martin Lopez  |  May 18th, 2007 at 2:03 am

    Anyone could recommend log viewer that works with Vista?

  • 6. H1DD3N.R350URC3 » B&hellip  |  May 25th, 2007 at 8:40 am

    [...] the flashlog.txt file that can be created with the Flash Debug Player (more info on this here and here). - Alcon now features an Inspect panel for inspecting objects. - A hexadecimal dump of an object [...]

  • 7. MICHA  |  June 10th, 2007 at 10:56 pm

    To emulate *nix tail on win:

    http://ophilipp.free.fr/op_tail.htm

  • 8. Debugging with Flash Debu&hellip  |  June 13th, 2007 at 2:37 pm

    [...] mentalaxis » Debugging with Flash Player 9,0,28,0 [...]

  • 9. Jason Milkins  |  June 13th, 2007 at 3:39 pm

    Use Console on Mac Os X

  • 10. YAFB » Blog Archive&hellip  |  January 14th, 2008 at 9:28 pm

    [...] it’s been done before and better please check out the blog of Mista Jason Milkins for a detailed article on this bit of debug [...]

  • 11. Jason Milkins  |  March 23rd, 2008 at 2:41 pm

    %APPDATA% will point to the Application Data (xp) / AppData (vista) folder

Leave a Comment

You must be logged in to post a comment .

Trackback this post  |  Subscribe to the comments via RSS Feed