You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Setting a key with type bigint in a Map makes the Map throw an error when viewed in the watch/variable pane, or when attempting to view it in the debug console. The error seen is:
Error processing variables: TypeError: Cannot read properties of undefined (reading 'length')
at c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:860531
at h (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:860747)
at d (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:858822)
at Object.t.previewRemoteObject (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:863968)
at U.toDap (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:959877)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at U.toDap (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:962103)
at async Promise.all (index 5)
at n.getVariables (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:967510)
at j._onVariables (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:839447)
at t.default._onMessage (c:\Users\rwillson\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.js-debug\src\extension.js:2:1070672)
Although the debugger breaks in this way, the code still seems to function. i.e. The Map does contain the key value pair and retrieving it will return the correct result at runtime, even through the debug console.
To Reproduce
In a javascript file use the following code
const a = new Map();
a.set(1n, "value");
debugger; // break here
Run and debug using node. You will see that the variables tab shows the error. If you enter a into the debug console the same error appears there.
Description
Setting a key with type bigint in a Map makes the Map throw an error when viewed in the watch/variable pane, or when attempting to view it in the debug console. The error seen is:
Although the debugger breaks in this way, the code still seems to function. i.e. The Map does contain the key value pair and retrieving it will return the correct result at runtime, even through the debug console.
To Reproduce
In a javascript file use the following code
Run and debug using node. You will see that the variables tab shows the error. If you enter
a
into the debug console the same error appears there.Log File
vscode-debugadapter-c1843209.json.gz
VS Code Version:
Version: 1.67.1 (user setup)
Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d
Date: 2022-05-06T12:37:03.389Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.18362
The text was updated successfully, but these errors were encountered: