My Visual Studio Code debugger does not work, where can i get some help?

Every time I try to debug a code i get the same error: " launch: program “the path of my folder/ file”" doesn’t exist. After some google searches it seems I’m not the only one with this problem but the suggested solution: “edit the json file to indicate the correct folder”, does not work so far. The error message actually indicates the correct path, however it adds \build\Debug\outDebug, which i cannot see in my folder. Any help is appreciated.

Hi Slav,

Please follow the instruction on this website and make sure all required extensions are installed: https://code.visualstudio.com/docs/other/unity

If the issue persists, please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft website. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471

What exactly do you mean by debugging? What are you debugging? The build? If so make sure that the build folders and files are not inside your project folder. Unity deletes everything that is not supposed to be there. The build is not supposed to be inside the project folder.

1 Like

Thank you , I will do that. I was just testing the debugging function with a simple code without unity.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms