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]>


On Wed, Jan 27, 2010 at 11:55 AM, P T Withington <[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) {}
    }


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

Reply via email to