4

So when running a SWF, is there a way to step through line by line of ABC code and observe registers, stacks? Could I at least print it to screen or log it?

4

2 回答 2

2

您可以通过将mm.cfg文件中的TraceOutputBufferedAS3Verbose变量设置为1来完成您想要的操作,详见这篇文章http://jpauclair.net/mm-cfg-secrets/

我已经能够验证它是否适用于 flash player debug 10.0 r45_2,但它似乎没有为 10.1 或 10.2 输出任何内容。

于 2011-03-29T10:59:20.183 回答
1

您可以使用SWFWire Inspector模拟单步执行代码进行反编译。如果您检查“ByteCode”和“Stack”,您将看到字节码,以及之后堆栈是如何受到影响的(或者反编译器认为它会如何)。

我还想指出,如果您在代码中放置了无效的操作码,flash player 会将堆栈转储到跟踪中。

于 2011-04-02T02:24:10.837 回答