Closed
Bug 700351
Opened 13 years ago
Closed 13 years ago
Fix deep object inspection in the script debugger
Categories
(DevTools :: Debugger, defect)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: past, Assigned: past)
References
Details
Attachments
(1 file, 4 obsolete files)
13.40 KB,
patch
|
dcamp
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•13 years ago
|
||
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.
Comment 2•13 years ago
|
||
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.
Comment 3•13 years ago
|
||
Attachment #574588 -
Flags: feedback?(past)
Assignee | ||
Comment 4•13 years ago
|
||
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)
Assignee | ||
Comment 5•13 years ago
|
||
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)
Assignee | ||
Comment 6•13 years ago
|
||
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)
Updated•13 years ago
|
Attachment #575123 -
Flags: review?(dcamp) → review+
Updated•13 years ago
|
Component: Developer Tools → Developer Tools: Debugger
QA Contact: developer.tools → developer.tools.debugger
Assignee | ||
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•