Breakpoints set but not yet bound in Visual Studio
Running Visual Studio Community 2017. Created a WebAPI project, have a controller class in there, with some basic stuff, but when I go to run in debug mode, I get the following error on my breakpoints, and I haven't the foggiest idea why.
The breakpoint will not currently be hit. Breakpoints set but not yet bound.
I've seen a few answers here and there, but they don't help, or they're about Visual Studio Code, which I am definitely not using.
I found this, but it doesn't tell me what to do about my problem. How do I fix this issue?
Change your Project mode from Release to Debug in your Visual Studio.
Try setting your web project as default Startup Project.
If you are using Multiple projects, you need to make sure the step below, let project debug normally
- Confirm the project which you want to debug is a default project, otherwise setting it as
startup project
- Confirm your project mode is
Debug
instead ofRelease
-
Clean
your solution or projects and rebuild your projects - Restart & Running your Current project.
Just clear the solution and re-start Visual Studio.