yes it does. The debugger prints out a message to that effect if it's not
enabled.


On Wed, Jan 27, 2010 at 12:56 PM, Max Carlson <[email protected]> wrote:

> Doesn't bactrace need to be enabled for this to work?
>
>
>
> On Jan 27, 2010, at 9:49 AM, Henry Minsky <[email protected]> wrote:
>
>
>
> 2010/1/27 Henry Minsky < <[email protected]>[email protected]>
>
>>
>>
>> On Wed, Jan 27, 2010 at 11:55 AM, P T Withington <<[email protected]>
>> [email protected]> wrote:
>>
>>> Approved with comments:
>>>
>>> I'm trying to decide if the bug report button should pass `lastError`
>>> explicitly, or just rely on the default, which is to use the value of `_` if
>>> it is a debugger message and failing that fall back to `lastError`.  Your
>>> choice.
>>> \
>>
>>
> I tried that but it did not seem to behave as expected in swf10. My test
> app is as follows
>
> <canvas>
>     <text bgcolor="#ccffcc" text="${canvas.runtime}"/>
>     <view bgcolor="red" x="100" y="100"  height="40" width="40"/>
>     <button onclick="canvas['barz']()">click to throw an error</button>
>     <button onclick="Debug.info(Debug.environment['_'])">_</button>
>     <simplelayout/>
> </canvas>
>
>
> If I click to throw an error, and then call Debug.bugReport()  with no
> args, it seems to get null from the code block at
>
>       try {
>         with (this.environment) {
>           if (_ is LzSourceMessage) {
>             error = _;
>           } else {
>             error = this.lastError;
>           }
>         }
>       } catch (e) {}
>     }
>
>
>
>


-- 
Henry Minsky
Software Architect
[email protected]
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews

Reply via email to