Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
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

Closed

Description

@kjin

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

  1. Run test/test-circular.ts, with the line to skip the test for Node 10+ removed.

Activity

  1. kjin commented on Aug 29, 2018

    @kjin
    Author
  2. added
    triage me
    on Aug 29, 2018
  3. added
    status: investigating
    type: feature request
    and removed
    triage me
    on Aug 29, 2018
  4. kjin commented on Sep 10, 2018

    @kjin
    Author
  5. self-assigned this
    on Sep 11, 2018
  6. added
    type: bug
    priority: p2
    and removed
    status: investigating
    type: feature request
    on Sep 12, 2018
  7. added
    status: blocked
    on Feb 12, 2019
  8. added
    🚨
    on Feb 25, 2019
  9. ofrobots commented on Feb 25, 2019

    @ofrobots
    Contributor

    No reason to keep this bug open given that the PR (blocked on a node release) is already in flight.

  10. added
    api: clouddebugger
    on Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨api: clouddebuggerpriority: p2status: blockedtype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions