You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
Can't dive into object properties for objects with circular references in Node 10+ #516
🚨This issue needs some love.api: clouddebuggerIssues related to the googleapis/cloud-debug-nodejs API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Objects with circular references aren't being properly represented in Node 10+.
#524 fixes this, but problems with circular references will only disappear once a change to the V8 Inspector Protocol lands in Node 10: because the Inspector API only sends mirror objects and corresponding IDs as a result of communicating over a TCP connection (as opposed to the legacy debugging API, which runs completely in-process), there isn’t a straightforward way to detect circular references. The current behavior is that the variable table being sent through to the Stackdriver Debugger server is filled up to the brim with a breadth-first crawl of an object, or an infinite loop if capture.maxDataSize is set to 0.
Environment details
OS: macOS (irrelevant)
Node.js version: 10.8.0
npm version: ~6 (irrelevant)
@google-cloud/debug-agent version: 2.6.0
Steps to reproduce
Run test/test-circular.ts, with the line to skip the test for Node 10+ removed.
🚨This issue needs some love.api: clouddebuggerIssues related to the googleapis/cloud-debug-nodejs API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
kjin commentedon Aug 29, 2018
kjin commentedon Sep 10, 2018
ofrobots commentedon Feb 25, 2019
No reason to keep this bug open given that the PR (blocked on a node release) is already in flight.