Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.stack.imgur.com/YZVOO.png

Thanks in advance!

like image 459
Ramandeep Kaur Avatar asked Apr 20 '20 16:04

Ramandeep Kaur


People also ask

How do I set breakpoints in Visual Studio 2019?

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.

Why is my breakpoint not working?

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.

How do I add a breakpoint to all methods in Visual Studio 2019?

Press F3 and then press F9 to add a breakpoint.


1 Answers

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

like image 131
Ramandeep Kaur Avatar answered Sep 29 '22 22:09

Ramandeep Kaur