[The actual layout of the debugger window in DHTML is still a little
off, especially the scrolling. But this is functional. I'd like to
check it in and then tweak the layout later.]
Change 20090519-ptw-1 by [email protected] on 2009-05-19
18:28:01 EDT
in /Users/ptw/OpenLaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Make the component debugger window work in DHTML
Bugs Fixed: LPP-7700 Debugger should be resizeable and moveable in DHTML
Technical Reviewer: max, hminsky (pending)
QA Reviewer: mdemmon (pending)
Details:
Expand the "DebuggerWindowConsoleBridge" to work on all platforms
so that all platforms work the same. The component window either
attaches itself to the debugger (if there is a <debug> tag) or the
debugger will create a component window.
For the DHTML bridge, some additional markup is used (because it
is available) and the evaluator is implemented on the platform
rather than by calling back to the server.
The simple evaluator for 'path' expressions is moved into the
bootstrap console so that it can be shared on platforms that do
not support eval.
Each of the compiler backends will either output the <debug> tag
specified in the user program to instantiate the console window,
or insert the appropriate code to cause the debugger to
instantiate a default window.
Removed the DHTML iframe-based debug console -- no longer needed.
Tests:
Tried debugging something in all 3 runtimes
Files:
M WEB-INF/lps/lfc/debugger/LzDebug.lzs
A WEB-INF/lps/lfc/debugger/platform/swf/
LzDebuggerWindowConsoleBridge.as
M WEB-INF/lps/lfc/debugger/platform/dhtml/LzDebug.js
A WEB-INF/lps/lfc/debugger/platform/dhtml/
LzDebuggerWindowConsoleBridge.js
M WEB-INF/lps/lfc/debugger/platform/swf9/
LzDebuggerWindowConsoleBridge.as
M WEB-INF/lps/lfc/debugger/Library.lzs
M WEB-INF/lps/lfc/compiler/LzBootstrapDebugService.lzs
M WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/DebugCompiler.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java
M WEB-INF/lps/templates/app-console.xslt
M lps/components/debugger/debugger.lzx
M lps/components/debugger/library.lzx
M lps/components/debugger/newcontent.lzx
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090519-ptw-1.tar