Debug is a singleton object to allow control of a global debug flag during script execution
1 isOn
Returns the state of the debugger
Copy
<script> let debug = Ax.debug.isOn(); // false by default return debug; </script>
2 on
Activates the debugger
Copy
<script> Ax.debug.on(); let debug = Ax.debug.isOn(); // debug == true return debug; </script>
3 off
Disables the debugger
Copy
<script> Ax.debug.off(); let debug = Ax.debug.isOn(); // debug == false return debug; </script>