Why visual studio cannot start debugging

Microsoft, Visual, Studio, Code Icon in MacOs Big Sur

There could be several reasons why Visual Studio is unable to start debugging. Here are a few things you can try to troubleshoot the issue:

1. Make sure that the solution is configured to build and the project is set as the startup project. You can do this by right-clicking on the project in the Solution Explorer and selecting “Set as StartUp Project.” Also, make sure that the project is set to the correct platform (x86, x64, AnyCPU) and configuration (Debug, Release).

2. Check if there are any errors or warnings in the Error List or Output window. If there are any errors, you need to fix them before you can start debugging.

3. Check if the debugger is attached to the correct process. You can do this by going to the Debug menu and selecting “Attach to Process”. Make sure the correct process is selected.

4. Check if there are any breakpoints set in the code. If there are, try disabling them or removing them to see if that resolves the issue.

5. Try restarting Visual Studio and your computer. This can sometimes resolve issues with the debugger.

6. Check if there are any compatibility issues with the version of Visual Studio you are using and the version of the .NET Framework you are targeting.


If none of these solutions work, you may need to provide more information on the specific error message or behavior you are experiencing so that further troubleshooting can be done.

Leave a Comment

Your email address will not be published. Required fields are marked *