avatar
Today is 星期六
2010 年 09 月 04 日

2008 年 03 月 17 日

在ubuntu中捕获trace

by fireyang — Categories: actionscript, flex, ubuntu — 标签:, , 评论暂缺

在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

评论暂缺 »

还没有任何评论。

发表评论

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

© 2010 fireyang’blog All rights reserved - Wallow theme by TwoBeers Crew - Powered by WordPress - Have fun!浙ICP备07033342号