Policy file logging

Posted: 07/05/08

An image of Policy file logging

A very handy debug feature that was added with player 9.0.115.0 was the ability to write the policy requests the player makes, and the responses it receives from the server, to a local log file. Doing this can save hours of debugging and diagnostics that eventually point to policy file and LoaderContext issues that are easily remedied. To take advantage of this, you need to do the following:

1) Ensure you have the debug player installed. It won't work without it.

2) Find the mm.cfg text file, usually located in C:\documents and settings\USERNAME

(If it doesn't exist, just create it yourself)

3) Enable policy logging by adding the following line to the mm.cfg file

PolicyFileLog=1

4) Run your app in debug mode, and then open policyfiles.txt that will be created in C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash Player\Logs

The Macromedia path is still used despite it now being an Adobe product

Vista Users:

Your path will be something more like: C:\Users\USERNAME

Keywords for this post: flash player, flash, logs, policy files