<html><body bgcolor="#FFFFFF"><div>Debug.backtrace() creates one. You have to output it somehow, like with Debug.debug. <br><br>On Apr 16, 2009, at 12:10, Henry Minsky <<a href="mailto:henry.minsky@gmail.com">henry.minsky@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>What's the name of the debugger function to call generate/print a backtrace? <div><br></div><div><br><br><div class="gmail_quote">On Thu, Apr 16, 2009 at 10:07 AM, P T Withington <span dir="ltr"><<a href="mailto:ptw@pobox.com"><a href="mailto:ptw@pobox.com">ptw@pobox.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This warning is created when you try to set a dimension of a view to NaN, so somewhere the test must be doing a computation that is going off the rails. We used to silently ignore this, but it broke some runtimes. I guess the only way to debug this is to run the test by hand. Maybe you have to change CSSDimension to print out a backtrace (and run the test with backtrace on)?<div>
<div></div><div class="h5"><br>
<br>
On 2009-04-15, at 17:47EDT, Henry Minsky wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When I run "ant lztest", I see these warnings. Note that the lztest is<br>
running the app in the "fake DOM" that<br>
we use in rhino, so maybe that harness needs updating?<br>
<br>
<br>
[exec] Entering runlztest.sh with LPS_HOME=/Users/hqm/openlaszlo/trunk5<br>
tags=smoketest<br>
[exec] covers-tags: class smoketest<br>
[exec] testing test/lztest/lztest-static-attrs.lzx...........<br>
[exec] Compiling: test/lztest/lztest-static-attrs.lzx to<br>
test/lztest/lztest-static-attrs.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] skipping test/lztest/lztest-textstyle.lzx, does not match tags<br>
smoketest<br>
[exec] covers-tags: lzview smoketest<br>
[exec] testing test/lztest/lztest-align.lzx...........<br>
[exec] Compiling: test/lztest/lztest-align.lzx to<br>
test/lztest/lztest-align.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] covers-tags: class smoketest<br>
[exec] testing test/lztest/lztest-class-impl.lzx...........<br>
[exec] Compiling: test/lztest/lztest-class-impl.lzx to<br>
test/lztest/lztest-class-impl.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] covers-tags : lzevent lzdelegate smoketest<br>
[exec] testing test/lztest/lztest-events.lzx...........<br>
[exec] Compiling: test/lztest/lztest-events.lzx to<br>
test/lztest/lztest-events.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] covers-tags : lznode lzcanvas smoketest<br>
[exec] testing test/lztest/lztest-ids.lzx...........<br>
[exec] Compiling: test/lztest/lztest-ids.lzx to<br>
test/lztest/lztest-ids.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] skipping test/lztest/lztest-lzbrowser.lzx, does not match tags<br>
smoketest<br>
[exec] skipping test/lztest/lztest-lzdataelement.lzx, does not match<br>
tags smoketest<br>
[exec] covers-tags : lznode smoketest<br>
[exec] testing test/lztest/lztest-node-initsequence.lzx...........<br>
[exec] Compiling: test/lztest/lztest-node-initsequence.lzx to<br>
test/lztest/lztest-node-initsequence.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] covers-tags : lznode smoketest<br>
[exec] testing test/lztest/lztest-node-options.lzx...........<br>
[exec] Compiling: test/lztest/lztest-node-options.lzx to<br>
test/lztest/lztest-node-options.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] covers-tags : lznode smoketest<br>
[exec] testing test/lztest/lztest-node.lzx...........<br>
[exec] Compiling: test/lztest/lztest-node.lzx to<br>
test/lztest/lztest-node.js<br>
[exec] <a title="#1">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
[exec] <a title="#2">WARNING: <a<br>
title="#0">LzSprite.prototype.CSSDimension</a>: coerced NaN to 0</a><br>
<br>
<br>
-- <br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank"><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a></a><br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com"><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a></a><br><br><br>
</div>
</div></blockquote></body></html>