-
Notifications
You must be signed in to change notification settings - Fork 282
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
JS debug console gives errors on a couple common Array functions #1201
Comments
I've had the same issue for months. Extremely annoying. [1, 2, 3].map(x => x) will cause the error, then changing the variable will work temporarily → e.g. [1, 2, 3].map(xx => xx) will work for a while, then need to change var name again. |
@alexhalme Please collect a log file using the instructions in the issue template. |
@connor4312, I initially tried to add |
Can you collect a gif of what you see, using https://gifcap.dev/ for example |
Ok, what you want to do to get a trace log from there is add this to your user settings:
You'll then want to reopen or create a new Debug Terminal, and that should get you the trace log |
vscode-debugadapter-6b752bf8.json.zip trace log.. |
The next nightly build will have the fix, please let me know whether you run into this again! |
with
It's not stopping at the debugger line at all for me. Maybe because of eslint or what am I doing wrong? |
@meganrogge can you grab a gif? THat sounds unrelated to this issue |
Also, mm, verification of this will be quite tricky. I can craft a sample source and sourcemap that could hit this but it would be useful if @kruchkamgar could confirm whether this worked for them! |
Verification instructions: Create a file minified.js const o=42;const c=43;debugger;console.log(o,c);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yaWdpbmFsLmpzIl0sIm5hbWVzIjpbInJlbmFtZWRWYXIiLCJhbm90aGVyUmVuYW1lZFZhciIsImNvbnNvbGUiLCJsb2ciXSwibWFwcGluZ3MiOiJBQUFBLE1BQU1BLEVBQWEsR0FDbkIsTUFBTUMsRUFBb0IsR0FDMUIsU0FDQUMsUUFBUUMsSUFBSUgsRUFBWUMifQ== and also a file original.js const renamedVar = 42;
const anotherRenamedVar = 43;
debugger;
console.log(renamedVar, anotherRenamedVar); Debug minified.js, with a launch config or in the debug terminal. Once there, play around the REPL. Verify you can evaluate |
simple Array functions, executed in the JS debug console, appear to result in errors. (sample shown below)
To Reproduce
Steps to reproduce the behavior:
Log File
VS Code Version:
Version: 1.64.1
Commit: d6ee99e4c045a6716e5c653d7da8e9ae6f5a8b03
Date: 2022-02-07T17:26:08.977Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: