[Laszlo-checkins] r10726 - openlaszlo/trunk/WEB-INF/lps/lfc/debugger
hqm@openlaszlo.org
hqm at openlaszlo.org
Wed Aug 20 12:24:57 PDT 2008
Author: hqm
Date: 2008-08-20 12:24:56 -0700 (Wed, 20 Aug 2008)
New Revision: 10726
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs
Log:
Change 20080820-hqm-k by hqm at badtzmaru.home on 2008-08-20 15:21:24 EDT
in /Users/hqm/openlaszlo/trunk/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc
Summary: make swf9 debugger only print to console if $debug is set
New Features:
Bugs Fixed:
Technical Reviewer: pbr
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Currently, in swf9, and call to Debug.write causes the debug console
field to become visible in the app, regardless of the setting of the debug flag.
It creates a problem in testing if this happens to obscure the application.
This change conditionalizes the appearance of the console window to match the
debug flag.
Tests:
this should not show anything
<canvas oninit="Debug.write('foo')"/>
this should show 'foo'
<canvas debug="true" oninit="Debug.write('foo')"/>
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs 2008-08-20 19:18:42 UTC (rev 10725)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/debugger/swf9stubs.lzs 2008-08-20 19:24:56 UTC (rev 10726)
@@ -12,9 +12,11 @@
dynamic class LzDebugService with LzFormatter {
public function write(...args):void {
- var str = this.formatToString.apply(this, args);
- trace(str);
- LFCApplication.write(str);
+ var str = this.formatToString.apply(this, args);
+ trace(str);
+ if ($debug) {
+ LFCApplication.write(str);
+ }
}
public function inspect(...args):void {
this.write('INSPECT: ' + this.formatToString.apply(this, args));
More information about the Laszlo-checkins
mailing list