Giter Site home page Giter Site logo

Comments (8)

felixfbecker avatar felixfbecker commented on September 1, 2024

Indeed annoying for stuff like process.env or XML DOM nodes

from vscode-node-debug.

weinand avatar weinand commented on September 1, 2024

The problem is the node debugger protocol. We would fix all those issues if there was an debugger API for that. Node-inspector has exactly the same issues and node-inspector exists much longer than VS Code and has not solved them...

from vscode-node-debug.

mjbvz avatar mjbvz commented on September 1, 2024

If the debugger can evaluate simple expressions, wouldn't Object.getOwnPropertyDescriptor return the required information even if the debugging protocol doesn't natively support inspecting getter/setter properties? Could that be leveraged internally?

from vscode-node-debug.

weinand avatar weinand commented on September 1, 2024

@mjbvz sure, that's possible. It is just a bit expensive to probe individual object properties that have a value of undefined via evaluate requests for this information. Until node 0.12.x I was relying on injecting debug protocol extensions into node. But this stopped working in later versions.

from vscode-node-debug.

felixfbecker avatar felixfbecker commented on September 1, 2024

@weinand the VS Code debug protocol has this boolean property expensive for variables. Is this suited for this case or what is it being used for?

from vscode-node-debug.

weinand avatar weinand commented on September 1, 2024

@felixfbecker a 'Scope' has an optional attribute 'expensive'. It is a hint to the UI to refrain from expanding the scope voluntarily.
It could only help if the debug adapter would know upfront that the variables in this scope would require lots of "evals". But knowing this, would require to walk the tree...

from vscode-node-debug.

felixfbecker avatar felixfbecker commented on September 1, 2024

Excuse me, I was mixing things up.

from vscode-node-debug.

weinand avatar weinand commented on September 1, 2024

Fix in branch improvedDataTypes or April release.

from vscode-node-debug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.