How to Solving debugging error in Visual studio - fabulouscode

Monday, June 27, 2022

How to Solving debugging error in Visual studio

 

Resolving breakpoint will not be hit error ways

  1. We will start with simple solution, try to clean your solution and then re-build. For this, simply open your "Solution Explorer", select your "Solution" and right click on it, Select "Clean Solution", once solution is cleaned, which will delete all the compiled and temporary files associated with a solution, select "Build" solution and then check if issue exists.
  2. Make sure, you have set configuration to "Debug" mode and you are not working on "Release" mode while debugging your application.
  3. If the above 2 methods doesn't work for you, you can try for second method to make sure, your .NET solution is confugured properly, follow these steps
    • Right click on your project name
    • Select Properties
    • Select the "Build" tab
    • Make sure "Define DEBUG constant" and "Define TRACE constant" are checked
    • Make sure "Optimize Code" is unchecked
    • Click the "Advanced" button at the bottom of the Build tab page
    • Make sure that "Debug Info:" is set to "full"
    • Click "Ok" and re-build your project.
  4. If all of the above steps, doesn't work for you, you can try to disable the "Just My Code" option in the Debug/General settings.
    For this navigate to "debug" -> select "options" and then from right-pane, de-select "Enable just my code"

Example credit link :

No comments:

Post a Comment

I am Safiqul Islam Tuhin