[Laszlo-dev] [JIRA] Created: (LPP-7394) Including the <debug/> tag defers the initialization of the debug console window

Henry Minsky hminsky at laszlosystems.com
Tue Nov 25 12:45:13 PST 2008


Well, indeed when I look at the script output, the debug window is being
instantiated after thescript tag block, for some reason I do not
understand.

When no <debug> tag is present, the SWFWriter helpfully instantiates a
LzDebugWindow, via a call
to LzDebug.makeDebugWindow. That calls new lz.LzDebugWindow, so it never
goes through the
canvas instantiator queue, so it shows up before everything else.

When the <debug> tag is present, it compiles like an ordinary view, and if
it's the first node in the
app, I don't understand why it doesn't show up first in the list of things
to be queued for instantiation, but
for some reason the stuff in the <script> block gets instantiated first.

Hey, in canvas.initDone, which instantiates stuff from the queue, I see this
code which puts anything
with a "initimmediate" attribute at the head of the queue.

    for ( var i = 0; i < isv.length; i++ ){
        var isi = isv[i];

        if ( isi['attrs'] && isi.attrs['initimmediate'] ){
            sva.push( isi );
        }

Do we document this anyplace? it's not in the schema. But maybe I can use it
to make the debugger
instantiate before anyone else.
    }

On Tue, Nov 25, 2008 at 1:08 PM, P T Withington (JIRA) <
jira at laszlosystems.com> wrote:

> Including the <debug/> tag defers the initialization of the debug console
> window
>
> --------------------------------------------------------------------------------
>
>                 Key: LPP-7394
>                 URL: http://www.openlaszlo.org/jira/browse/LPP-7394
>             Project: OpenLaszlo
>          Issue Type: Bug
>          Components: Developer Console
>    Affects Versions: DunkinTools 4.2b3
>            Reporter: P T Withington
>            Assignee: Henry Minsky
>
>
> Test case:
>
> <canvas debug="true">
>  <debug />
>  <text oninit="Debug.debug('text')">Test</text>
>  <script>
>    Debug.debug('script');
>  </script>
>  <handler name="oninit">
>    Debug.debug('oninit');
>  </handler>
> </canvas>
>
> Expected result:
> All 3 debug outputs should be inspectable
>
> Actual result:
> Output from script is not
>
> If you remove the <debug /> tag, the test case works as expected.
>
> Conclusion:  When the debug tag is included, the instantiation of the debug
> console window is 'delayed', hence the script output is being sent to the
> bootstrap console (which does not maintain inspectability).
>
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://www.openlaszlo.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20081125/34dfedc6/attachment-0001.html


More information about the Laszlo-dev mailing list