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
This problem occurs when I am using the Start Debugging (F5) command with a Breakpoint on a loop and try to print the output on the console.
JS example code:
for (let i=0;i<=5;i++) {
console.log(i);
}
When executing the Step Into (F11) command multiple times it only prints on the console a "0". The other outputs do not show up, if you proceed to use the same command.
The error message showing is: "Error processing scopes: TypeError: cannot read properties of undefined (reading createScope )"
I have backed up with a previous Visual Studio Code version (1.75.1) and everything is working fine there, but when I upgrade, the same error is present.
VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:02:16.981Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No
System Info
Item
Value
CPUs
AMD Ryzen 5 5600H with Radeon Graphics (12 x 3294)
Hello! Starting from yesterday I am experiencing this issue as well on MacBook Air M1. Tried to uninstall and then install VSC again, but the error is still there.
Yea it's coming from js-debug. Looks like a race that could be hit if the runtime was really slow for certain requests. An easy fix, but I'm curious to see debug logs if you can grab them to see if there's anything obvious that might be causing the slowdown.
Please collect trace logs using the following instructions:
If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.
frameseeker do you have a .vscode/launch.json in your workspace, or are you just running that .js file directly?
roblourens I am running only a .js file without a launch.json. The only JSON file on my Visual Studio Code is the settings.json with below configuration:
My VSCode updated automatically a few days ago to 1.77.0 and I am hitting the same error while trying to console.log an array during debugging. The program execution runs fine, though.
Running on Ubuntu, maybe not a good idea to have two new things at once (Linux and learning to code). I do understand my post is of little value, but do not know what I do not know at this point.
Tried installing an older version of VSCode, there are path related issues, so I cannot run the debugger or program itself at all to tell the difference.
This is just to emphasize on the fact, that before the update 6 days ago this was working fine for me as well.
(One day I will look back with a smile on this lame first post)
Activity
popovalexei commentedon Apr 2, 2023
Hello! Starting from yesterday I am experiencing this issue as well on MacBook Air M1. Tried to uninstall and then install VSC again, but the error is still there.
roblourens commentedon Apr 3, 2023
Do you recognize that error Connor Peet (@connor4312)? I don't think it's coming from vscode.
roblourens commentedon Apr 3, 2023
frameseeker do you have a
.vscode/launch.jsonin your workspace, or are you just running that .js file directly?connor4312 commentedon Apr 3, 2023
Yea it's coming from js-debug. Looks like a race that could be hit if the runtime was really slow for certain requests. An easy fix, but I'm curious to see debug logs if you can grab them to see if there's anything obvious that might be causing the slowdown.
/jsDebugLogs
vscodenpa commentedon Apr 3, 2023
Please collect trace logs using the following instructions:
frameseeker commentedon Apr 4, 2023
roblourens I am running only a .js file without a launch.json. The only JSON file on my Visual Studio Code is the settings.json with below configuration:
{
"launch": {
}
AtanasDinkov commentedon Apr 4, 2023
Hello, Everyone,
My VSCode updated automatically a few days ago to 1.77.0 and I am hitting the same error while trying to console.log an array during debugging. The program execution runs fine, though.
Running on Ubuntu, maybe not a good idea to have two new things at once (Linux and learning to code). I do understand my post is of little value, but do not know what I do not know at this point.
Tried installing an older version of VSCode, there are path related issues, so I cannot run the debugger or program itself at all to tell the difference.
This is just to emphasize on the fact, that before the update 6 days ago this was working fine for me as well.
(One day I will look back with a smile on this lame first post)
Kind Regards.
fix: cannot read createScope of undefined
fix: cannot read createScope of undefined (#1644)
nikola1031 commentedon Apr 7, 2023
Hey, having this issue as well. Stepping into a function doesn't work properly. Is this supposed to be fixed? Running v1.77.1