Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a breakpoint via code in Actionscript 3

Is there any statement in Actionscript 3 which acts as a breakpoint when executed? That is, something like JavaScript's "debugger" statement.

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

like image 571
Johannes Bittner Avatar asked Nov 19 '25 08:11

Johannes Bittner


1 Answers

Use enterDebugger function.

import flash.debugger.enterDebugger;

// code ...
enterDebugger()
// code ...
like image 106
Patrick Avatar answered Nov 21 '25 23:11

Patrick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!