Search code examples
c#visual-studio-2019breakpointsasp.net-core-3.1

Breakpoint set but not yet bound in Visual Studio 2019


I am running a web project(as startup) project in Visual studio 2019 and getting this error while hovering on the breakpoint:

The breakpoint will not currently be hit. Breakpoints set but not yet bound.

I tried many recommended solutions like

  1. clean and rebuild
  2. Set the startup project
  3. Deleted temp files and rebuild
  4. update and restart system etc..

None of the above solution worked for me. Also my solution properties and project configuration is already in debug mode->Any CPU It's almost impossible to go ahead without debugging code. Help will be highly appreciable. Please suggest.

Here is the image of code with breakpoint https://i.sstatic.net/YZVOO.png

Thanks in advance!


Solution

  • I got it resolved by closing solution, manually deleting obj/release/debug folder and rebuilding it.