Change ptw-20110117-vYW by [email protected] on 2011-01-17 11:52:19 EST in /Users/ptw/OpenLaszlo/trunk-3 for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Spiff up the debugger (round 1) Bugs Fixed: LPP-9674 Make Debug.bugReport() easier to use Technical Reviewer: [email protected], [email protected] (pending) QA Reviewer: [email protected], [email protected] (pending) Doc Reviewer: [email protected] (pending) Release Notes: When inspecting an object, if an attribute is styled by a CSS style binding, the name of the CSS property is displayed, e.g.: paddingright:number padding-right: 5 The debugger display now has a context (right-click) menu with some standard useful actions. When an error is signalled in the debugger on program start, a greeting message is displayed with instructions on how to get details about the error or report the error as a bug. Overview: Fixed a pile of inconsistent or old-fashioned code in the debugger. Added some spiffy new features. Details: contextmenu.js: Recompile with latest schema compiler LzMessage: Generalize the annotation of message strings to include additional attributes (for styling). Make appending messages a little more efficient. Make it so inspecting a message shows the backtrace if there is one. When there is an error, add to the standard greeting some hints on what to do about it. LzDebug: Add a greeting to give some hints about how to use the debugger. Clean up a whole bunch of hand-rolled formatting to use standard formatting. Broke slot desription out of inspect so it can be used by other clients. Added two new debugger properties: _dbg_properties and _dbg_description that can be used by classes to customize how Debug.inspect will display them. Added annotation for view slots that have style bindings. Enhanced bugReport to inspect any objects referred to by the error message. LzDebuggerWindowConsoleBridge.*: amend makeObjectLink to understand the additional annotations and represent them to the best ability of the platform. swf9/LzDebug: Try to put the stack trace in a cleaner format before attaching to the error. Maintain Debug.environment, so the rest of the debugger can rely on it. LzBacktrace: Improve the display of backtraces, stack frames, and native Errors using the new _dbg_properties and _dbg_description features of inspect. LzNode: Improve nodePath to display style classes, deal with anonymous nodes, detached nodes, and special-case canvas. PresentationType: Add some error handling, new API for presentationTypeValue to avoid creating for simple types. Fix brain-oh in CSS type. LzCanvas: Tell the debugger when you are done initializing. LzFormatter: Enhance formatCallback to pass the object. Split out formatToMessage to allow easily appending to an existing message. Reactivate %{ formatter as a way to specify styling. debugger: Add a context menu with some useful options. Tests: IWFM Files: M WEB-INF/lps/lfc/contextmenu.js M WEB-INF/lps/lfc/debugger/LzMessage.lzs M WEB-INF/lps/lfc/debugger/LzDebug.lzs M WEB-INF/lps/lfc/debugger/platform/swf/LzFlashRemote.as M WEB-INF/lps/lfc/debugger/platform/swf/LzDebuggerWindowConsoleBridge.as M WEB-INF/lps/lfc/debugger/platform/dhtml/LzDebug.js M 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/platform/swf9/LzDebug.as M WEB-INF/lps/lfc/debugger/LzBacktrace.lzs M WEB-INF/lps/lfc/core/LzNode.lzs M WEB-INF/lps/lfc/core/PresentationTypes.lzs M WEB-INF/lps/lfc/views/LaszloCanvas.lzs M WEB-INF/lps/lfc/compiler/LzFormatter.lzs M WEB-INF/lps/lfc/compiler/LzMessage.lzs M WEB-INF/lps/lfc/compiler/LzBootstrapDebugService.lzs M lps/components/debugger/debugger.lzx Changeset: http://svn.openlaszlo.org/openlaszlo/patches/ptw-20110117-vYW.tar
