question

RayPietrzak-7967 avatar image
1 Vote"
RayPietrzak-7967 asked FarrukhMalik-8067 answered

Visual Studio Debugging - Breakpoint Set but Yet Bound

I am having issues trying to Debug in Visual Studio 2017. I have a web application project and have set some breakpoints in my *.aspx.vb code pages. The breakpoints set just fine with the Red Circle indicator. But when I start the debugger, I get the warning that the Breakpoint will not currently be hit. Breakpoint set but not yet bound.

I cannot figure out how to fix this? What is wrong?

vs-debugging
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

With all the cleaning, try to clear the Temporary ASP .Net files folder in Windows/Microsoft Net/Framework and Framework64. My issue of break point not binding goes away when I clear these temp files and specially when I clear the browser's Cache. No need to uncheck Just My code option in the Options ==> Debug ...

0 Votes 0 ·
TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered HegedusichPhil-4335 commented

Hello @RayPietrzak-7967 ,

Welcome to Microsoft Q&A forum.

Please try following steps to troubleshoot:

1). Build > Clean Solution and then restart Visual Studio and rebuild your project, after that debug again.

2). Please go to your solution folder and delete(or rename) the “obj”, “bin” and the hidden “.vs” folder, restart Visual Studio and then rebuild your solution.

3). Check if you have chosen the “Debug” mode and if you have many other projects in this solution, make sure you have set the “Set as Startup Project” for the corresponding project.

Best Regards,
Tianyu


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Unfortunately this didn't solve the issue for me.

1 Vote 1 ·

I'd put number 3 at the top of the list. More often than not I find that switching to debug config activates breakpoints. Imagine that.

0 Votes 0 ·
AdamStachowicz-8288 avatar image
0 Votes"
AdamStachowicz-8288 answered

Please check if Enable Just My Code option is disabled in Visual Studio.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FarrukhMalik-8067 avatar image
0 Votes"
FarrukhMalik-8067 answered

With all the cleaning, try to clear the Temporary ASP .Net files folder in Windows/Microsoft Net/Framework and Framework64. My issue of break point not binding goes away when I clear these temp files and specially when I clear the browser's Cache. No need to uncheck Just My code option in the Options ==> Debug ...

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.