[Laszlo-dev] For Review: Change 41428 Summary: First steps to DHTML debugger

P T Withington ptw at pobox.com
Wed Apr 12 23:21:14 EDT 2006


Henry, I'm hoping you can test this out on IE.  I can check it in if  
that would be easier -- perhaps tomorrow at our meeting.

Change 41428 by ptw at ptw-legals-4 on 2006/04/12 14:52:12 *pending*

	Summary: First steps to DHTML debugger
	
	Technical Reviewer: hminsky (pending)
	QA Reviewer: max (pending)
	Doc Reviewer: n/a (pending)
	
	New Features:
	
	When debug=true and lzr=dhtml, an iframe is inserted in the
	wrapper page where the swf debugger would normally appear.
	(This is not intended to be the ultimate debugger interface,
	it is a temporary measure.  We can easily experiment with
	putting the debugger in a separate window.)  The core debugger
	has been ported to Javascript and sends its output to the
	iframe.  Debug.write, format, warn, and error are all working
	and they write 'inspectable' messages -- you can click on the
	objects in the message, as in the swf runtime to inspect them.
	
	The Javascript translator has been taught to insert code in
	debug mode to catch references to non-existent variables and
	report them as errors on the debug console.  It uses the
	original file and line number, which makes debugging a litte
	easier than what is reported by the browser (which only sees
	the merged/massaged Javascript as one huge file).
	
	Details:
	
	LaszloLibrary: remove Henry's Debug stubs.b
	
	LzRuntime: remove old swf5 support functions; move compiler
	warning support here, so that it is loaded early; add a
	bootstrap reporter so that errors can be reported even before
	the debugger is working: in SWF the reporter writes log
	entries to the server (if logdebug=true), in DHTML the
	reporter writes to the DebugWindow.
	
	debugger/Library: move the ported bits of the debugger into
	the DHTML clause (more to come).
	
	debugger/LzCompiler: work around a translator bug in the real
	reporter function.
	
	debugger/LzDebug.js: Javascript port from LzDebug.as (to be
	merged eventually).  Includes some code from the component
	debugger to write 'clickable' messages to the DebugWindow.
	
	debugger/LzFormat.as: Fixed a few Javascript errors that made
	this non-portable (to be moved to .lzs).
	
	debugger/LzInit.as: Make work in Javacript (to be moved to
	.lzs).
	
	debugger/LzMessage.as: Conditionalize writing of 'inspect
	links' to work in SWF and DHTML.
	
	Compiler: Create PassThroughNode (needed for this work, but
	will soon support passthrough pragma and native files).
	Support translating expression lists.  Use
	ScriptCompiler.quote to quote strings, rather than the kludge
	I had.
	
	JavascriptGenerator: Use _dbg_name for function names (instead
	of the old name) and make it work.  Support passthrough.  Fix
	catch semantics: variable is a declaration, not a fetch.  Add
	support for checking undefined references in debug mode
	(property, index and function checking TBD).
	
	ScriptCompiler: Fix quote to properly quote.
	
	app-console.xslt:  Add DHTML DebugWindow.
	
	Tests:  Works fine in Firefox, passably in Opera, and just
	barely in Safari (Safari seems to have some Javascript bugs).

Affected files ...

... //depot/lps-legals/WEB-INF/lps/lfc/LaszloLibrary.lzs#3 edit
... //depot/lps-legals/WEB-INF/lps/lfc/compiler/LzRuntime.as#3 edit
... //depot/lps-legals/WEB-INF/lps/lfc/debugger/Library.lzs#3 edit
... //depot/lps-legals/WEB-INF/lps/lfc/debugger/LzCompiler.as#3 edit
... //depot/lps-legals/WEB-INF/lps/lfc/debugger/LzDebug.js#1 edit
... //depot/lps-legals/WEB-INF/lps/lfc/debugger/LzFormat.as#2 edit
... //depot/lps-legals/WEB-INF/lps/lfc/debugger/LzInit.as#4 edit
... //depot/lps-legals/WEB-INF/lps/lfc/debugger/LzMessage.as#3 edit
... //depot/lps-legals/WEB-INF/lps/server/src/org/openlaszlo/sc/ 
Compiler.java#10 edit
... //depot/lps-legals/WEB-INF/lps/server/src/org/openlaszlo/sc/ 
JavascriptGenerator.java#11 edit
... //depot/lps-legals/WEB-INF/lps/server/src/org/openlaszlo/sc/ 
ScriptCompiler.java#2 edit
... //depot/lps-legals/WEB-INF/lps/templates/app-console.xslt#4 edit


-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-41428.zip
Type: application/zip
Size: 143402 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060412/67c0aa68/changeset-41428-0001.zip


More information about the Laszlo-dev mailing list