开启flash player调试,打log出来

 

原文 http://blog.csdn.net/sun_shine_/article/details/20724743

adobe flash player有自带调试功能的版本。

=====================================

先解释一下官网下载的flash版本:

下载地址

http://www.adobe.com/support/flashplayer/downloads.html
这里面适合windows的有几种:

ActiveX control content debugger (for IE) 适合ie浏览器
Plugin content debugger (for Netscape-compatible browsers) 适合除ie浏览器以外的浏览器

Projector content debugger 适合本地独立调试器
=====================================
在安装了具有调试功能的fp,那么就可以配置打log的功能。

只需要配置mm.cfg文件,就存下fp打出来的log!

配置mm.cfg文件,这是调试版fp的配置文件。

该文件的目录位置:(此文件需要自己手动创建,username替换成自己的用户名)

Windows 2000/XP %HOMEDRIVE%\%HOMEPATH% 默认位置“c:\Documents and settings\username”
Windows Vista Windows 7 %HOMEDRIVE%\%HOMEPATH% 默认位置 “c:\Users\username”
简单的来说,文件的内容只需要两行,如下

==============

ErrorReportingEnable=1
TraceOutputFileEnable=1
==============

怎么查看log,log目录

Windows 95/98/ME/2000/XP C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs
Windows Vista/Windows 7 C:\Users\username\AppData\Roaming\Macromedia\Flash Player\Logs

=====================================
flashlog.txt里面的内容乱码?

我电脑上的flashlog里的中文有一些乱码,一些不乱码。

这两种文字的编码不一样,一种是ANSI编码,一种是UTF-8有BOM,因此你只能转换编码看到另一种文字。


参考文献:

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fc9.html

http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f-4867184d1239f9d0558-8000.html

posted on 2017-12-08 16:05  Floki  阅读(1170)  评论(0编辑  收藏  举报