Closed Bug 700351 Opened 13 years ago Closed 13 years ago

Fix deep object inspection in the script debugger

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: past, Assigned: past)

References

Details

Attachments

(1 file, 4 obsolete files)

The script debugger after bug 694538 allows the inspection of objects like 'this', __proto__, etc., albeit only one-level deep. After bug 699419 is done, object inspection should be fixed to work as expected.
Depends on: 694538
Attached patch WIP (obsolete) — Splinter Review
This is my WIP. Running it on htmlpad.org/debugger I get the following error when I try to inspect the "this" object:

DBG-CLIENT: Error handling response: TypeError: aVar.addProperties is not a function - SF_addExpander([object Object],[object Proxy])@chrome://browser/content/debugger.js:263
([object Proxy])@chrome://browser/content/debugger.js:293
([object Proxy])@resource:///modules/dbg-client.jsm:736
DC_onPacket([object Proxy])@resource:///modules/dbg-client.jsm:370

Commenting out lines 294 and 299 should make the errors disappear, along with deep object inspection.
Assignee: nobody → past
Status: NEW → ASSIGNED
Attachment #574568 - Flags: feedback?(vporof)
Comment on attachment 574568 [details] [diff] [review]
WIP

Review of attachment 574568 [details] [diff] [review]:
-----------------------------------------------------------------

You were trying to call addProperties from a property descriptor.
Attached patch WIP fix (obsolete) — Splinter Review
Attachment #574588 - Flags: feedback?(past)
Attached patch Working patch (obsolete) — Splinter Review
Fixed the frame.arguments and __proto__ breakage, as well as a few more corer cases that I've hit: prototypes for wrapped natives and property grips having hasOwnProperty defined. It's just missing a few tests.
Attachment #574568 - Attachment is obsolete: true
Attachment #574588 - Attachment is obsolete: true
Attachment #574568 - Flags: feedback?(vporof)
Attachment #574588 - Flags: feedback?(past)
Attached patch Working patch v2 (obsolete) — Splinter Review
Added tests for making sure expanding an object retrieves its properties, and made a couple of small changes requested in bug 694538 comment 5 and bug 695279 comment 7.
Attachment #574604 - Attachment is obsolete: true
Attachment #574895 - Flags: review?(dcamp)
Attached patch Working patch v3Splinter Review
Made another simplification requested in bug 694538 comment 8.
Attachment #574895 - Attachment is obsolete: true
Attachment #574895 - Flags: review?(dcamp)
Attachment #575123 - Flags: review?(dcamp)
Attachment #575123 - Flags: review?(dcamp) → review+
Component: Developer Tools → Developer Tools: Debugger
QA Contact: developer.tools → developer.tools.debugger
https://hg.mozilla.org/users/dcamp_campd.org/remote-debug/rev/be56b2aa2541
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: