another fine, fine nugget from the Flex documentation is how to use a config file to save trace output to a text file on your development machine using the Debug player!
this cfg file is a different cfg file than the one to disable auto-update and windowless movies from playing - that one is MMS.CFG and resides in the system folder.
this one is MM.CFG and resides in the home directory of the current user (eg: C:\Documents and Settings\username).
sorry Mac folks, this one seems to be a Windows-only tool.
anyways, here are the steps i took to get this working in WinXP. it's pretty much the same as on the referenced doc page, but i'll cover a few issues i encountered.
MAJOR WOOT!
i was kind-of annoyed that enableDebugConsole() no longer worked in FP7 because it was a blessing for testing a file in the browser, but this is the next best thing! (i mean, of course there's still remote debugging with Flash open, but that's just not as cool as this)
since this requires the Debug player and a manual configuration file to be added to the system, it's not really feasible to use this method for any sort of actual text file writing from the browser. i mean, you can access the mm.cfg file, close all browser windows, re-open the browser, re-launch your page, and then trace to a different file. if you could do that, you could just write to a file in the first place! :-)
good luck! and happy tracing!
UPDATE!!! i've found that the flashlog.txt file is overwritten by each different Flash movie that is run. so you don't really have to worry about clearing out the file every-so-often. that could be a good thing, it could be a bad thing - depends upon what you're hoping it will do.
cheers
g.
No Comments for this post yet...
Comments are closed for this post.
The opinions expressed on this blog are those of the author only and are not necessarily those of his employer.
