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
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.stack.imgur.com/YZVOO.png
Thanks in advance!
To set a breakpoint in source code, click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.
Press F3 and then press F9 to add a breakpoint.
I got it resolved by closing solution, manually deleting obj/release/debug folder and rebuilding it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With