| Property | Description |
|
| Enables the logging of error messages. Set the To disable logging of error messages, set the The default value is 0. |
|
| Sets the number of warnings to log before stopping. The default value of the Set the Set the |
|
| Enables trace logging. Set Disable trace logging by setting the The default value is 0. |
|
| Sets the location of the log file. By default, the debugger version of Flash Player writes error messages to a file named flashlog.txt. Set
On Mac OS X, you should use colons to separate directories in the TraceOutputFileName path rather than slashes. Note: Beginning with the Flash Player 9 Update, Flash Player ignores the |
2010年10月21日星期四
自己配置flash tracer
在firefox下有个flashTracer插件,可以查看debug版下flash程序里的trace信息
http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html
但如果没有firefox怎么办?这时候就得学会自己配置一下来查看trace信息了,它插件只是用adobe做出来的debug外置接口做了方便一点的输出台而已
原理上应该是flash debug会在flash播放器里内置一个程序,这个程序可以跟踪AVM2中的执行过程,并能通过加载C:\Documents and Settings\username\mm.cfg文件读取一些配置信息,然后根据配置信息在跟踪代码执行过程当中把一些需要的信息写入到C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs\flashlog.txt文件当中去,所以要配置自己的trace控制台,只需要准备这个mm.cfg文件并写好里面的配置参数就好了,如果想让查看log信息方便点可以自己写个本地程序来读取flashlog.txt文件内容显示出来,当然肯定已经有第三方写出来了这样的工具了,Vizzy就是一个,项目 地址http://code.google.com/p/flash-tracer
另外还要熟悉一些配置参数
另外还有一些参数可以输出代码执行中的调用堆栈啦什么的,参数给忘记了,想起了再补上
订阅:
博文评论 (Atom)
没有评论:
发表评论