debug-1.lzx
<canvas debug="true" height="150" width="100%">
<debug name="debugwindow" y="${canvas.height - this.height}" height="80%"/>
<button name="button">
<attribute name="visible" value="${canvas['debugwindow'] != null}"/>
<attribute name="text" value="${canvas['debugwindow']?((canvas.debugwindow.visible?'hide':'show') + ' debugger'):null}"/>
<handler name="onclick">
canvas.debugwindow.setAttribute('visible', (! canvas.debugwindow.visible));
</handler>
</button>
</canvas>
Cross References
Named Instances