Monster Debugger
利用Flash Builder做调试时,断点的作用除了可以让你pause整个运行中的项目之外,对我来说最有用的是查看各种变量在当时的状态,但是这种愿望在你加载的子文件中是无法实现的(也许可以,我没细研究,欢迎指正),当然你可以trace,可是trace这个玩意在很多情况下是不靠谱的,比如我每次去找flashlog.txt文件时,常常发现里面空空如也。
某些情况下,比如你用A加载了B.swf,现在想清楚的知道B相对于A所处的层级结构,它的parent是谁,它的root中是否包含通讯所需的变量……
然后我发现了 Monster Debugger
[![](https://archive.writeitdown.site/%2525E5%2525B1%25258F%2525E5%2525B9%252595%2525E5%2525BF%2525AB%2525E7%252585%2525A7%2525202013-08-27%252520%2525E4%2525B8%25258A%2525E5%25258D%2525889.58.08.png)](https://archive.writeitdown.site/%2525E5%2525B1%25258F%2525E5%2525B9%252595%2525E5%2525BF%2525AB%2525E7%252585%2525A7%2525202013-08-27%252520%2525E4%2525B8%25258A%2525E5%25258D%2525889.58.08.png)
[网站在此](http://www.monsterdebugger.com/)
这是一个在阿姆斯特丹的团队开发的非常实用的调试工具。首先在你的项目中,初始化它。
MonsterDebugger.initialize(this);
`</pre>
</div>
<div>然后,在你想要trace信息的地方,打印信息吧。</div>
<pre>` MonsterDebugger.trace("Hello World!");
`</pre>
还有,可以在指定的地方,下断点。
<pre>` MonsterDebugger.breakpoint(this,"bp1");
记得运行它的客户端程序,然后你就会看到如下面板。
[![](https://archive.writeitdown.site/%2525E5%2525B1%25258F%2525E5%2525B9%252595%2525E5%2525BF%2525AB%2525E7%252585%2525A7%2525202013-08-27%252520%2525E4%2525B8%25258A%2525E5%25258D%25258810.07.20.png)](https://archive.writeitdown.site/%2525E5%2525B1%25258F%2525E5%2525B9%252595%2525E5%2525BF%2525AB%2525E7%252585%2525A7%2525202013-08-27%252520%2525E4%2525B8%25258A%2525E5%25258D%25258810.07.20.png)
值得一提的是这团队非常有爱,因为他们郑重地在成员介绍页面上介绍了他们的狗Dribbel,title是,office dog,哈哈哈哈哈
[![](https://archive.writeitdown.site/%2525E5%2525B1%25258F%2525E5%2525B9%252595%2525E5%2525BF%2525AB%2525E7%252585%2525A7%2525202013-08-27%252520%2525E4%2525B8%25258A%2525E5%25258D%25258810.19.43.png)](https://archive.writeitdown.site/%2525E5%2525B1%25258F%2525E5%2525B9%252595%2525E5%2525BF%2525AB%2525E7%252585%2525A7%2525202013-08-27%252520%2525E4%2525B8%25258A%2525E5%25258D%25258810.19.43.png)