[Laszlo-dev] For Review: Change 20090112-ptw-M Summary: Add some pretty debugger output
André Bargull
andre.bargull at udo.edu
Tue Jan 13 09:09:06 PST 2009
When you copy the dbg-description in LzState, you need to add a `if
($debug)`, or you'll get a runtime error in swf9 non-debug, because
"_dbg_name" is only declared for debug-mode.
Otherwise approved!
On 1/13/2009 2:47 AM, P T Withington wrote:
> Change 20090112-ptw-M by ptw at dueling-banjos.home on 2009-01-12 20:13:34 EST
> in /Users/ptw/OpenLaszlo/trunk
> for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Add some pretty debugger output
>
> Bugs Fixed: LPP-5835 Add constraint string to LzOnceExpr
>
> Technical Reviewer: andre.bargull at udo.edu (pending)
>
> Documentation:
> The debugger now prints the expression that a constraint is
> enforcing when printing a constraint.
>
> Events are now printed as:
> %owner%/<event name='%eventname%'>
>
> Delegates are now printed as:
> %context%/<handler name='%eventname%'>
> if the reference is different from the context, it is displayed,
> if the method is not an anonymous method, it is displayed.
>
> Details:
> LzInit: Name things in lz that don't already have names (mostly
> this names the singleton services).
>
> LzDebug: Add _dbg_ as an internal property prefix, so debug
> annotations do not show up in inspect output by default.
>
> LzDefs: Add a _dbg_name slot to LzOnceExpr (and subclasses) that
> will be filled in by the compiler and displayed by the debugger.
> Add _dbg_name methods to computed style values so they print
> prettier.
>
> LzState: When cloning a constraint, copy the _dbg_name.
>
> LaszloEvents: Implement the new prettier format for printing
> events and delegates.
>
> Tests:
> Poked around in the debugger and verified things were prettier.
>
> Files:
> M WEB-INF/lps/lfc/debugger/LzInit.lzs
> M WEB-INF/lps/lfc/debugger/LzDebug.lzs
> M WEB-INF/lps/lfc/core/LzDefs.lzs
> M WEB-INF/lps/lfc/helpers/LzState.lzs
> M WEB-INF/lps/lfc/events/LaszloEvents.lzs
>
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090112-ptw-M.tar
>
More information about the Laszlo-dev
mailing list