Comments (8)
Indeed annoying for stuff like process.env
or XML DOM nodes
from vscode-node-debug.
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.
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.
@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.
@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.
@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.
Excuse me, I was mixing things up.
from vscode-node-debug.
Fix in branch improvedDataTypes
or April release.
from vscode-node-debug.
Related Issues (20)
- Debug restart, breakpoint will automatically jump to unknown line HOT 4
- "legacy" is still the default for attach
- Local root property in nested config file HOT 1
- Debugging meteor with sourcemaps: package-name with colons crash discovery HOT 6
- Need to ensure that log folder exists HOT 1
- smartStep should only skip unmapped lines in files that have sourcemaps
- Simplify generated launch.json HOT 3
- Cannot embed node-debug in other module layouts HOT 1
- Releases do not contain vsix extention HOT 8
- Support showing numbers as hex HOT 1
- Unable to do npm i HOT 1
- Calculate name for attached processes HOT 1
- debug.node.autoAttach=0 results in high CPU on Windows HOT 2
- autoAttachChildProcesses looses uncaught exception output HOT 1
- Auto Attach not working in VsCode when debugging a simple node js application HOT 2
- Cannot view static variables when debuger is paused HOT 1
- SIGKILL sent instead of SIGINT on stop of Debug HOT 1
- Support Workspace Trust HOT 1
- Support virtual workspaces
- Auto attach fails when pid is greater than 6 digits. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-node-debug.