April 15, 2006

黑羽翔天§Flash 远程调试器1.0Beta

ActionScript3天地会公测中...

RD(RemoteDebugger的样子)
点击下载黑羽翔天§Flash 远程调试器1.0Beta
Click Here to Download Kingda RemoteDebugger 1.0 Beta

(filetype: zip size: 178k.)
(转载请注明出处,thanks 链接 : http://www.kingda.org/archives/kingda/2006/04/flash.html)

自己开发项目时深深感到flash自带远程调试器不太好使,自己花了一些时间开发了一个简易远程调试器。看看大家反应怎样,如果觉得好,我再开发一下后续版本,加入更多的调试功能。
有好的建议请回贴说说。^_^

English manual is at the bottom of this page
=====================================
Light Weight RemoteDebugger 1.0Beta.
show trace messages inside swf. support html msg.
Flash 8 is recommended. Flash MX2004 is also supported.
Made by Kingda Sun.
轻量级的远程调试器。可在播放的flash中显示调试信息。黑羽翔天(Kingda Sun)制作.
注意:支持AS2.0,fla请发布为支持AS2.0。
安装方法: 解压缩RemoteDebugger.zip,双击RemoteDebugger.mxp进行安装。
======================================
起因:
Flash自带的远程调试器三大缺点:
1.反映比较慢。
在远程调试含有较多组件&类代码的flash时,flash自带的远程调试器往往反映比较慢,还经常导致脚本缓慢要求关闭的现象。一旦生成的调试文件swd>1M多后,远程调试是有点痛苦的。
我所做的项目生成的调试文件有7M之多。而往往我们只需要trace关键信息,并不需要数据结构,舞台元件等信息。
2.必须通过Flash开发工具才能使用远程调试。
有时候在没有flash开发工具的环境下就没法知道调试的内容。比如说要去客户哪里看问题出在哪里,你当然不会指望所有客户都安装着Flash 8或者2004开发工具吧?
3.没有行号显示,不能特殊显示重点文字,不支持html
Flash自带的完全是普通的文本,你不可能指望它显示加粗,字体颜色,字体大小等等选项。trace大量信息时,如果需要重点显示某些文本,那么这些功能很有用,

我的调试器1.0beta版特色:

RD关闭时的样子

RD的特色:
1.在播放的 Flash内部显示调试信息。
2.支持html trace信息。容易加亮或者特殊显示重要信息。易于查找。
3.有行号显示。
4.易于使用,易于调试。

RD的用法:
RD的用法

1.打开您自己的fla文件。
2.拖动组件(Ctrl+F7打开)面板中kingda.org目录下RemoteDebugWin组件到库中。
3.在fla文件中,每帧用到了RD的actions脚本首行都要加上 "import org.kingda.tools.debug.RD;"
如果您要在任何一个类文件中使用远程调试器,别忘了在第一行加上 import org.kingda.tools.debug.RD;
4.在您任何想要trace信息的地方,打入 RD.tce("您的调试信息") 或者 RD.trace("您的调试信息")即可。用法和Flash的trace用法一样。
但可以支持html格式。比如 RD.tce("您的调试信息")就会显示粗体。


快捷键:
Ctrl+Shift+D: 在发布的flash swf中,按Ctrl+Shift+D即可关闭或者显示远程调试器。
在flash 中调试时,如果发现快捷键无效,请检查播放器“控制>禁用快捷键”是否钩上。


API应用程序接口:
1.RD.tce("String")和 RD.trace("String")功能相同。
2.RD.debug: 在任何一个地方,第一帧或者类文件中,打入 RD.debug = false; 那么trace信息将不再显示。打入 RD.debug = true; 那么trace信息将继续显示。
English Manual:

I hope you guys find it useful!

What's it for?
When I managed to muddle through the development of some RIA projects, I found that it is necessary to make a light weight remote debugger to take the place of Flash8's own, in some cases.
For reasons below:
1.When the .swd file is bigger than 2M, the remote debugging is not only time-consuming but also cpu-consuming, if using Flash8's own remote debugger.
In many cases ,we just want the important trace msgs ,not a mess of infomation about all varibles , objects, symbols and movieclips.
2. Flash8's remote debugger has to work with Flash IDE.
If your clients found some bugs in their own computers, and they want you figure the problems out in those computers. What would you do? Bet that each of them has Flash 8 or Flash 2004 installed?

And My RD supports html trace msg, line number and shortcuts. You can disable or enable the debugger window by using shortcuts when flash is playing.

How to use it
1. Open your own fla file. (yourfile.fla)
2. Please drag the RemoteDebugWin component from the "kingda.org" dir on the Component Panel(Ctrl+F7) to the library of your fla file.
3. Input "import org.kingda.tools.debug.RD;" in the actions panel of the first frame in the timeline.
If you wanna trace msg in your class file, plz input "import org.kingda.tools.debug.RD;" at the top line.
4. Then you guy can trace any string msg inside the swf by typing
RD.tce("your msg"); or RD.trace ("your msg");
The similar usage of the flash own trace command.
But this RemoteDebugger support html msg. For Example:
Your can type RD.tce("your msg") to bold your msg; of course you can add font color ,or other html tags flash supported.

Shortcuts:
Press Ctrl+Shift+D to open or close Debugger window when the flash is playing.
If you try to use this shortcut when you test movie inside flash authoring tool, plz make sure that "control>disable shortcut" is checked.
API:
1. RD.tce("string format msg"); RD.trace("string msg"). same function, different names for convenience. html format is supported.
2. RD.debug. Whenever you wanna disable Debugger, type RD.debug = false, and then RemoteDebugger is disabled. Type RD.debug = true to enable it.

you also can use it to trace message inside online swf. Msg of html format

If you want to donate, click here.





广告:哈哈,现在刚好是阿里妈妈推广期哦,你是站长吗?推荐注册阿里妈妈赚广告费

TrackBack

TrackBack URL for this entry:
http://www.kingda.org/mt/mt-tb.cgi/20

Comments (20)

Jexm:

支持了,不错。希望看到你的下一个版本。

realonlyjj:

支持,黑羽这里好东西不少啊,以前为什么一直没发现过呢

黑羽:

hehe,多谢支持。我会陆续把我的一些小工具发布上来。 ^^

rocks:

你好。
清问你这个如何应用于flex2的
trace.
可以吗?或者期待下个版本?

这个组件使用AS2.0代码编写的。
3.0中不可混用AS2.0,所以暂时不行。
有空时,我会编个3.0的版本。常来看看。:)

有个相当严重的问题
我是用FDT写代码
组件安装的形式无法
import org.kingda.tools.debug.DR;
也就是说这么好的东西用不了

-_-

支持了,不错。希望看到你的下一个版本。

hey,find wow gold click here

Coooooooooooool~!

不错。。赞一个。

很好,有收获。

我是一个菜鸟,flash loading还没搞会,希望请大虾指点下!在网上看了些教程,不少都误导人.

finefish:

在哪下啊??

在网上看了些教程,不少都误导人,请大虾指点下buy wow gold,

很想跟你交个朋友wow goldb不可以吗?

to wow power leveling:
hi, wow gold,
看到你的留言了,
服了你了,坚持不懈的在我博客上发广告链接哦,呵呵。^^

你要是真想在我博客上宣传自己网站的话,我就在友情链接上方给你做一条全站文字广告链接吧,这样你可以多分一些PR值,不用辛苦跟贴留言还被删了。

你把每月报价发过来,合适的话我就放。

不合适的话,也请你不要在继续发链接了,毕竟和我Flash开发内容无关啊,我删得也累啊

留下高见,发表评论

个人信息不会外泄,请放心填写。

姓名和Email必填。

发表评论后,请耐心等待,不要频繁刷新。提交完成后,刷新一下本页即可看到您的评论。^_^

请输入验证字符"r" :
文字广告:你是站长吗?注册阿里妈妈赚广告费

最近发表

归档

全部
Creative Commons License
此 Blog 中的日记
遵循以下授权:
Creative Commons
(创作共用) 授权
.
Google PageRank
本站被Adobe官方MXNA新闻聚合器收录
本站被蓝色理想BXNA收录