locked
Visual Studio Debug issue RRS feed

  • Question

  • User1408931231 posted

    Hello everyone. My web projects in Visual Studio 2012 have stopped hitting breakpoints when I debug. I did notice that the button to stop debugging starts in the ribbon when I start to debug...but is disappears almost immediately and my project loads through the breakpoints. 

    My Win Forms appear to debug properly...its just web. I have googled and tried a few things...to no avail. Even a repair install. 

    Any thoughts?

    Friday, June 23, 2017 6:40 PM

Answers

  • User1408931231 posted

    The mistake was mostly my own. There is strict security on the browsers here at my office. Running from the secured browser hit the break points. 

    Ugh. Thanks for all of the replies. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 27, 2017 5:42 PM

All replies

  • User1068175894 posted

    try disabling the hosting process

    https://msdn.microsoft.com/en-us/library/ms185330(v=vs.100).aspx

    restart Vs after doing the change

    Friday, June 23, 2017 6:57 PM
  • User991499041 posted

    Hi peeweex10,

    Some ideas

    1. Make sure it's a debug build and not release
    2. Turn off optimizations in your project properties if they are on
    3. Try inserting Debugger.Break() in your code instead of a breakpoint in VS
    4. Make sure breakpoints are enabled (Debug->Windows->Breakpoints toolbar), and breakpoint symbol should be solid

    Please see the below link if you still have issues:

    https://weblogs.asp.net/guybarrette/the-breakpoint-will-not-currently-be-hit

    Regards,

    zxj

    Monday, June 26, 2017 2:29 AM
  • User1068175894 posted

    did you solved your issue?

    Monday, June 26, 2017 1:23 PM
  • User347430248 posted

    Hi peeweex10,

    Right click on Project and click on properties.

    go to 'Web' Tab.

    check the option 'enable and continue'.

    I find in one of the older thread that op is using Visual Studio 2012 and developing web application and have same issue like yours.

    by doing the steps above he was able to solve the issue. so you can have a try to check it on your side.

    Regards

    Deepak

    Tuesday, June 27, 2017 8:13 AM
  • User1408931231 posted

    The mistake was mostly my own. There is strict security on the browsers here at my office. Running from the secured browser hit the break points. 

    Ugh. Thanks for all of the replies. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 27, 2017 5:42 PM