Steve MartonSteve Marton

My feedback

  1. 306 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      15 comments  ·  Visual Studio IDE » Debugging and Diagnostics  ·  Flag idea as inappropriate…  ·  Admin →

      Thank you for using Visual Studio and for your commitment to improving it. We are currently evaluating whether we will be able to address this suggestion in a future release. Thanks for capturing the pain points you feel when stepping through multithreaded applications while debugging. We will be providing an update soon.

      Additionally, I wanted to clarify that the debugger will only ever complete a step on the thread from which the step was originated. So if you hit a breakpoint, disable it, and then begin stepping you should not stop on a different thread. If you have other breakpoints in your application and another thread hits one, then you will be debugging in the mixed thread state as described in this item.

      Kaycee Anderson
      Program Manager, Visual Studio

      Steve MartonSteve Marton commented  · 

      Any feedback at all on this issue?

      Steve MartonSteve Marton commented  · 

      I've noticed one particular case where the debugger fails to step normally.

      In VS 2012 I placed a breakpoint in a function that is called by many threads.
      Broke on one thread, disabled the breakpoint, and started stepping through.
      Occasionally the instruction pointer would jump back to the location of the old breakpoint in another thread when that thread hit that instruction. This kept happening over and over as new threads hit that instruction, making it really hard to step through my thread of interest. I have a lot of these threads. This is a common scenario when you're running the same code wide across multiple cores.

      It seems that the breakpoint was not correctly disabled on all the threads when I intended to disable it.

      This might be the source of most of the headache I mentioned in suggestion 1). The rest of the time stepping seems to work reasonably, mostly.

      Suggestion 2) is still super important, even if 1) is fixed!

      Steve MartonSteve Marton shared this idea  · 
    • 105 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        8 comments  ·  Visual Studio IDE » IDE and Editor  ·  Flag idea as inappropriate…  ·  Admin →
        Steve MartonSteve Marton supported this idea  · 

      Feedback and Knowledge Base