|
|
|
Verification: Load tests/data/local-data.lzx, notice that when you evaluate canvas.datasets, you now see `...`, showing that some elements have not been displayed. Turning on `Debug.showInternalProperties` and inspecting reveals that the local datasets have (somewhat bizarre) internal names, which is why they are not diplayed:
lzx> canvas.datasets {gdata: LzDataset :gdata, ...} lzx> Debug.showInternalProperties=true true lzx> Debug.inspect({gdata: LzDataset :gdata, ...}) «Object#9| {gdata: LzDataset :gdata, ...}» { __U1.localdata: <localdata/> __U2.lds: <lds/> __U3.lds: <lds><foo>bar</foo></lds> __U4.lds: «lz.dataset| <lds><persons><person id=\"1\"><firstName>Dan</firstName><lastName>McGowan</lastName><modifyDate>3/25/05</modifyDate><address id=\"1\" code=\"ML\"><line1>2210 North 184th Street</line1><line2/><city>Shoreline</city></address></person><p...» __U5.lds: «lz.dataset| <lds><persons><person id=\"1\"><firstName>Dan</firstName><lastName>McGowan</lastName><modifyDate>3/25/05</modifyDate><address id=\"1\" code=\"ML\"><line1>2210 North 184th Street</line1><line2/><city>Shoreline</city></address></person><p...» __U6.lds: «lz.dataset| <lds><persons><person id=\"1\"><firstName>Dan</firstName><lastName>McGowan</lastName><modifyDate>3/25/05</modifyDate><address id=\"1\" code=\"ML\"><line1>2210 North 184th Street</line1><line2/><city>Shoreline</city></address></person><p...» __U7.localdata: <localdata/> __U8.localdata: <localdata/> __U9.localdata: <localdata/> gdata: #gdata } {gdata: LzDataset :gdata, ...} lzx> |
||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed paths:
M /openlaszlo/branches/legals/WEB-INF/lps/lfc/debugger/platform/dhtml/LzDebug.js
M /openlaszlo/branches/legals/WEB-INF/lps/lfc/debugger/platform/swf/LzDebug.as
Change 20070326-ptw-b by ptw@dueling-banjos.local on 2007-03-26 15:26:58 EDT
in /Users/ptw/OpenLaszlo/legals-1
for http://svn.openlaszlo.org/openlaszlo/branches/legals
Summary: Debugger indicates when it is abbreviating an object
Bugs Fixed:
LPP-3784'Debugger needs to indicate when it has abbreviated an object.'Technical Reviewer: hminsky (Message-ID: <8c61fad60704010429t46d1c9afj5e8a9c93b57e56df@mail.gmail.com>)
QA Reviewer: antun (pending)
Doc Reviewer: jsundman (pending)
Documentation:
When the debugger prints an object, it tries to print a concise
description of the object -- if the object has a name or id, it will
try to use that name. For anonymous objects, it will print some of
the properties of the object (if not all the properties are printed,
it will print `...` to indicate the elision). If you want details of
the object, you should inspect the object, but note that even
inspection does not show methods or inherited properties.
Tests:
IWFM