开发者

Setting a breakpoint via code in Actionscript 3

开发者 https://www.devze.com 2023-03-08 08:31 出处:网络
Is there any statement in Actionscript 3 which acts as a breakpoint when executed? That is, something like J开发者_JAVA百科avaScript\'s \"debugger\" statement.

Is there any statement in Actionscript 3 which acts as a breakpoint when executed? That is, something like J开发者_JAVA百科avaScript's "debugger" statement.

I need it when developing AS3 applications without an IDE. Setting the breakpoint manually in fdb is rather tedious.


Use enterDebugger function.

import flash.debugger.enterDebugger;

// code ...
enterDebugger()
// code ...
0

精彩评论

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