r/VisualStudioCode • • Jan 05 '23

Debug won't work in VSC

Hello! I really need a piece of advice and I don't know who to ask really. I'm new to coding and Visual studio in general (started programming basics course with js a couple of months ago) and I need help, because I don't understand much about it at this rate. VSC was running fine until a couple of days ago, when I got interested in Unity and figured I'd need C# in order to get into that, so I downloaded .net framework and plugins in order to be able to code in VSC. I have no idea what happened, but I'm not able to debug, sometimes I don't get an output in the console and I'm overall really worried, because my course starts again in a couple of days and I won't be able to code using js. I changed the folder that the files get stored in, I uninstalled the plugins, uninstalled VSC and downloaded it again but nothing works. I took a screenshot of the error message that pops up when i try to pick node.js for the debbuger. Please if anyone can give any sort of advice it will be greatly appreciated!

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Smeagol_x_loops Jan 06 '23

They give us exercises that we have to "solve" and it doesn't work with any type of js code, when I try to set node.js for the debuger it says " Cannot read properties of undefined (reading 'fsPath'). Tried searching online about the error but I can't seem to find anything useful.