-
Notifications
You must be signed in to change notification settings - Fork 329
Closed
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugdebtCode quality issuesCode quality issuesverification-steps-neededSteps to verify are needed for verificationSteps to verify are needed for verification
Milestone
Description
I've noticed that each time I call session.customRequest("variables") within a single debug session, the response time increases.
Restarting the debugger is the only way I've found to reset this slowdown, but I'd love to find a way to clear or reset any internal state or cache that might be causing this performance drop.
(I try to dump stack variables during debugging in extension)
System Info:
- VS Code: 1.94.2
- Debugger: Built-in Node.js Debugger
- OS: Windows_NT x64 10.0.22631
Example Timing
for (let i = 0; i < 30; ++i) {
const start = performance.now();
await this.session.customRequest("variables", { variablesReference: variable.variablesReference });
console.log("Time elapsed:", performance.now() - start);
}
Time elapsed: 11.290199999999459
Time elapsed: 11.23530000000028
Time elapsed: 12.20679999999993
...
Time elapsed: 34.46030000000246
Time elapsed: 33.31810000000041
Time elapsed: 36.91250000000218
Time elapsed: 34.52990000000136
Time elapsed: 37.4291000000012
I'm unsure if this is an issue with DAP or the debugger itself, but any tips on handling this without needing a full restart would be great!
Metadata
Metadata
Assignees
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugdebtCode quality issuesCode quality issuesverification-steps-neededSteps to verify are needed for verificationSteps to verify are needed for verification