在 ubuntu 中捕获 trace

在 ubuntu 下的 firefox 中有一个这样的插件 flashtracer 插件,配置好他就能捕获你的 trace,当然你的 flashplayer 一定要是 debug 版本的

参考此网站:http://www.sephiroth.it/weblog/archives/2007/01/install_flashtracer_on_linux.php

其实你也可以手动把 trace 捕获到一个文件里,具体的配置是

在你的~目录下新建一个 mm.cfg(在 windows 中一般是 c 盘),在 ubuntu 下一般就是 /home/{username};其中的 {username} 就是你系统的登录名

操作系统 位置
Windows XP C:Documents and Settings[user name]mm.cfg
Windows 2000 C:mm.cfg
Mac OS X MacHD:Library:Application Support:macromedia:mm.cfg
ubuntu /home/[user name]/mm.cfg
在这个文件中写入以下内容

TraceOutPutFileName=/home/fireyang/.macromedia/Flash_Player/Logs/flashlog.txt
ErrorReportingEnable=1
TraceOutputFileEnable=1
MaxWarnings=100

其中:
TraceOutputFileEnable
设置值为 0 (不写入文件) 或 1 (写入文件).
TraceOutputFileName
文件路径,如果没有指定,会在 mm.cfg 的同目录下生成一个叫 flashlog.txt 文件
ErrorReportingEnable
设置值为 0 (不输出错误信息到文件) 或 1 (输出错误信息). 默认为 0
MaxWarnings
写入文件的错误信息数量。如果为 0 则没有限制。

Ps: 从 Flash Player 9 Update 开始,我们不能修改日志文件的位置了,默认的位置为:
Windows C:\Documents and Settings\user_name\Application Data\Macromedia\Flash Player\Logs
Macintosh Users/user_name/Library/Preferences/Macromedia/Flash Player/Logs/
Linux home/user_name/macromedia/Flash_Player/Logs/flashlog.txt