[Laszlo-dev] For Review: Change 20081112-ptw-E Summary: Add a simple evaluator to the swf8/9 debugger

André Bargull andre.bargull at udo.edu
Thu Nov 13 02:13:54 PST 2008


The RegExp fails for the bracket-notation, e.g. `canvas['subviews']`.

var re = new 
RegExp('^([$_A-Za-z][$\\w]*)((\\.[$_A-Za-z][$\\w]*)|(\\[\\d+\\]))*$');
Debug.write(re.test("canvas['subviews']"))


On 11/13/2008 3:54 AM, P T Withington wrote:
> Change 20081112-ptw-E by ptw at dueling-banjos.home on 2008-11-12 
> 21:45:49 EST
>     in /Users/ptw/OpenLaszlo/trunk
>     for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Add a simple evaluator to the swf8/9 debugger
>
> Bugs Fixed:
> LPP-7271  swf9: exceptions running debugger in embedded HTML
>
> Technical Reviewer: hminsky (pending)
> QA Reviewer: a.bargull at intensis.de (pending)
>
> Details:
>     Added a simple evaluator that can evaluate globals, object member
>     and array index expressions without having to invoke the server
>     compiler (e.g., `canvas.subviews[0]`).  This will allow simple
>     object inspection in the debugger in solo apps or apps deployed
>     without the lps server; it will also speed up the evaluation of
>     such simple expressions as the server will not be invoked to
>     compile them.
>
> Tests:
>     lzc --debug someapp.lzx, load that app directly from your
>     filesystem, evaluate `canvas.subviews[0]` in the debugger and note
>     that it works.
>
> Files:
> M      lps/components/debugger/debugger.lzx
>
> Changeset: 
> http://svn.openlaszlo.org/openlaszlo/patches/20081112-ptw-E.tar
>


More information about the Laszlo-dev mailing list