Closed
Bug 1578969
Opened 5 years ago
Closed 5 years ago
The server should format nested properties
Categories
(DevTools :: Debugger, enhancement, P3)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jlast, Unassigned)
References
(Blocks 1 open bug)
Details
The server currently formats top-level properties and ignores nested
I think this patch should fix that. The rationale is that I believe that only top-level objects are added to the persisted pools. This forces all objects we're watching to be added to a pool.
diff --git a/devtools/server/actors/object.js b/devtools/server/actors/object.js
index 7aa67b162ac0..4e17ed40cfcc 100644
--- a/devtools/server/actors/object.js
+++ b/devtools/server/actors/object.js
@@ -108,6 +108,7 @@ const proto = {
},
addWatchpoint(property, label, watchpointType) {
+ this.hooks.createValueGrip(this.rawValue())
if (this._originalDescriptors.has(property)) {
return;
}
Other notes:
- look in actors/frame.js:form for where top level objects are added to a pool
- look in actors/thread.js:createValueGrip for the pool stuff
Reporter | ||
Updated•5 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•5 years ago
|
||
This is now fixed
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•