Change 20091124-ptw-p by [email protected] on 2009-11-24 19:18:55 EST
in /Users/ptw/OpenLaszlo/trunk-2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Learn how to inspect long strings again
Bugs Fixed: LPP-8635 Debug.inspect lost the ability to expand abbreviated
strings
Technical Reviewer: hminsky (pending)
Details:
Don't escape the string if you are asked to print the 'pretty'
version. When inspecting non-objects at full length, print the
'pretty' version. Don't enter non-objects into the circular
reference table. Turn off 'unique' when printing pretty.
Tests:
Create a program that causes a runtime error, e.g.:
(function (x) { return x.foo })(3);
Run in swf10. Inspect the error. In the Debugger, evaluate
_.getStackTrace()
You will get an abbreviated string like:
«string(1838)| ReferenceError: Error #1069: P?»
Inspect that, and you should see the expanded string, which is the
backtrace from the runtime:
lzx> Debug.inspect(«string(1838)| ReferenceError: Error #1069: P?»)
ReferenceError: Error #1069: Property foo not found on Number and there
is no default value.
at
<anonymous>()[/usr/local/tomcat/jakarta-tomcat-5.0.30/temp/lzswf9/Users/ptw/OpenLaszlo/trunk-2/test/build/ptw/$lzc$class_$2Fcanvas$2Fa.as:69]
at
$lzc$class_$2Fcanvas$2Fa/foo()[/usr/local/tomcat/jakarta-tomcat-5.0.30/temp/lzswf9/Users/ptw/OpenLaszlo/trunk-2/test/build/ptw/$lzc$class_$2Fcanvas$2Fa.as:82]
[...]
Files:
M WEB-INF/lps/lfc/debugger/LzDebug.lzs
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20091124-ptw-p.tar
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews