-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow call stack response for TS repository #5645
Comments
@isidorn does it make a difference if you only request one stackframe on a stoppedevent? |
@isidorn what version of node is that? |
@weinand It does not seem to make a difference if I request only 1 stack frame. |
@isidorn does it make adifference if you do not request variables for stackframes at all? |
@weinand if I do not request variables it is quite faster (a bit faster than node inspector) |
Moved comment from #4951 by @joewood: Hi @weinand, I did a bit of investigation. I tried node-inspector and didn't see the issue. But, I did see the problem when I added my data structure to the watch window. Background here is that this module that I'm debugging has a large data structure loaded into memory. If I add this structure explicitly to node-inspector I see similar timeouts. However, in VSCode I see the problem consistently, even with an empty watch window. So I assume the issue is related to what VSCode is watching by default (locals and context scope etc..) and what it's transferring each time I step through the debugger. With that in mind I did a quick repro: const faker = require("faker");
let data = {};
console.log("Running");
for(let n=0; n<100000; n++) {
data["1" +n] = faker.name.firstName();
} |
Steps to Reproduce:
launch.json
The text was updated successfully, but these errors were encountered: