Stop Debugging (Shift+F5) causing debugging to restart

I'm using Visual Studio 2008 Professional Edition for development. I have observed that whenever I test web applications or websites using Ctrl+F5 and then stop the debugging (or close the browser), the debugging starts again, as if I pressed Ctrl+F5 again.

Initially I thought this could be because of a sticky ctrl key but I have checked and confirmed that sticky keys in my machine are not enabled.

I searched on the web and have observed that many others have also faced the very same issue. But Microsoft says that the issue is due to a sticky ctrl key. (Refer : http://connect.microsoft.com/VisualStudio/feedback/details/534915/stop-debugging-shortcut-key-shift-f5-causes-debugging-to-restart-instead-of-just-stopping)

Anyone else has any other ideas as to why this could be happening (in case I might have missed out on some updated forum)

Thanks a lot.! :)


I really like your question as this occurs to me occasionally and don't know why after many years & don't believe it's related to sticky keys.

There are only two ways I can stop the debugging in this situation:

  • Alt + D; E = I press Alt + D; to open the Debug menu then E for 'Stop Debugging' This is alternative hotkey combination that will work.
  • is to click the stop button on the debug tool bar.
  • (optional) Sometimes when I'm not able to press teh Alt + D I'm not able to get focus to the toolbar and I press ctrl 5 times. Somehow the sticky keys get stuck even though I didn't turn them on.
  • Hope that helps.


    I too have this happen to me sometimes, and I too have disabled StickyKeys. I even see this sometimes when I have locked my computer. When this happens and I try to type in my password, the computer acts like I am pressing down control.

    My only suggestion is to use the menus to stop Debugging, and then gently tap the Control key twice, and then try again. It always stops when I do this.

    In the back of my mind, I wonder if it is due to conflicts of third-party utilities that intercept key combos for their triggers. SnagIt, Freesnap, AutoHotKey are three that I use, but when the problem is so intermittent, you can't really disable them and say, "yup, my problem went away."


    This may sound simple and might not be the answer for you but it was for me. Somehow in Visual Studio 2015 my Shift+F5 got mapped to "Debug.Restart" and "Debug.StopDebugging" got remapped to Ctrl+Alt+Break. Not sure if Resharper somehow screwed up the shortcuts.

    I was able to fix it by going to Tools... Options... Environment... Keyboard, searching for "Debug.StopDebugging" and assigning Shift+F5 to it.

    链接地址: http://www.djcxy.com/p/14898.html

    上一篇: Mysql:按子查询的最大N值排序

    下一篇: 停止调试(Shift + F5)导致调试重新启动