开发者

Any tool to debug ActionScript ByteCode? Would like to observe registers, stacks

开发者 https://www.devze.com 2023-02-19 06:39 出处:网络
So when running a SWF, is there a way to step through line by line of ABC code and observe registers, stacks? C开发者_开发技巧ould I at least print it to screen or log it?What you want can be done by

So when running a SWF, is there a way to step through line by line of ABC code and observe registers, stacks? C开发者_开发技巧ould I at least print it to screen or log it?


What you want can be done by setting TraceOutputBuffered and AS3Verbose variables in your mm.cfg file to 1 as detailed in this post http://jpauclair.net/mm-cfg-secrets/

I have been able to verify that it works for flash player debug 10.0 r45_2, but it doesn't seem to output anything for 10.1 or 10.2.


You can use SWFWire Inspector which emulates stepping through the code to do decompilation. If you check "ByteCode" and "Stack", you will see the byte code, and how the stack was affected afterwards (or how the decompiler thinks it would have been).

I also want to point out that flash player will dump the stack to the trace if you put an invalid opcode in your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号