Can debug in Visual Studio | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can debug in Visual Studio

Hey guys! I really need your help! I am currebtly working on a large C# project. But since today I can't debug anymore. It always says that it can't find the .exe in the bin\projectname\file.exe I don't know what to do and would be really thankful if some of you could help me! Thank you so much!

20th Jan 2020, 5:30 PM
ExampleWasTaken
ExampleWasTaken - avatar
3 Answers
+ 2
Is the path of your project correct? Or look if the exe is still there where it should be. If you cant find the exe ot you removed it te only solution is to open the cpp source file in Visual Studio and compile again the code
20th Jan 2020, 5:48 PM
Daniel Vetter
Daniel Vetter - avatar
0
Thanks mate! You are my first hope! I reckon you mean the cs file? How do I recompile it? If you mean F5, that doesn't work, it then tells me, that the access to the directory, where the debug file should be (bin\debug\file.exe), was denied.
20th Jan 2020, 6:58 PM
ExampleWasTaken
ExampleWasTaken - avatar
0
Daniel Vetter thank you so much again! You were my hope in a very critical time...;-) I fixed the problem. Apparently it was a Windows 10 bug. Restarted the computer and I worked again.
20th Jan 2020, 7:13 PM
ExampleWasTaken
ExampleWasTaken - avatar