Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 518
NovaDev Avatar asked Jun 13 '18 19:06

NovaDev


People also ask

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 set breakpoint conditions in Visual Studio?

Right-click the breakpoint symbol and select Conditions (or press Alt + F9, C). Or hover over the breakpoint symbol, select the Settings icon, and then select Conditions in the Breakpoint Settings window.

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

Press F3 and then press F9 to add a breakpoint.


1 Answers

Change your Project mode from Release to Debug in your Visual Studio.

Debug Mode

like image 160
Sandeep Kumar Singh Avatar answered Sep 21 '22 13:09

Sandeep Kumar Singh