Fix "Unable to Find Package" NuGet Error in Visual Studio C#
A debugger is a powerful tool of Visual Studio or any IDE that helps developers to identify and resolve issues that arise in code by allowing them to view the result of a line-of-line execution of programs. There could be various reasons for debugging not working in Visual Studio. Let's look at how to fix it.
1. You may have set the breakpoint in the wrong place. You have to make sure that the breakpoint is set to the correct position.
2. You may have set the mode other than debug. You just have to set the mode to debug.
When you set the breakpoint in the code and when you run the application you may find the breakpoint will not hit and it gives a message like: "The breakpoint will not currently be hit. No symbols have been loaded for this document".
You can look below to set the mode to debug in visual studio.
3. Also it might be the case that you are debugging the application and simultaneously you are making changes in the code and save the code and come the try to hit the same code then it does not work because the source code and the compiled assembly are out of sync.Β
You may have to stop the debugger and build the application again and debug again.
Conclusion
These are simple steps you can follow to fix the debugger not working in visual studio.
Β
Β