visual-studiobreakpoints

Unbound Breakpoints?


enter image description here

I've been having trouble running some breakpoints after my code is built and ran. My project is on ASP.NET. I'm using VS 2022 and so far I have tried the following things:

To be specific, the breakpoint is solid when set, but becomes hollow and unbound when my code is ran. Any suggestions? How can I fix this?


Solution

  • I had this same problem recently on Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.4.0 Preview 6.0.

    This fixed it for me:

    1. Right click solution > Set Startup Projects
    2. (Make sure they are set to "Start" and not "start without debugging" while you are here)
    3. Click Configuration Properties
    4. Change Configuration for your projects from Release to Debug.

    Might need to change these back to Release before deploying...