Amogh Natu
Amogh Natu

Reputation: 881

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.! :)

Upvotes: 8

Views: 7816

Answers (5)

Doug Null
Doug Null

Reputation: 8327

This happened to me when I upgraded VS to that disaster 16.6.x which changed Shift-F5 from Debug.stop to Debug.start.

Tools menu > Options > Keyboard fixes it. (It's a confusing dialog but you'll figure it out -- you're a programmer, ie IQ through the roof, right? Yeah!

Shift-Ctrl-F5 does restart.

I'm in my 50th year of programming and still loving it and making tons of money. What a career this is!

Upvotes: 0

alexiefication
alexiefication

Reputation: 11

I also had the same problem. I'm also using Visual Studio 2008. Just click tools>>option>>environment>>Keyboard. And then set

this option

to "Default".

Upvotes: 0

csrowell
csrowell

Reputation: 934

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.

Upvotes: 0

Catto
Catto

Reputation: 6419

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:

  1. 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.
  2. is to click the stop button on the debug tool bar.
  3. (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.

Upvotes: 5

John Anderson
John Anderson

Reputation: 53

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."

Upvotes: 1

Related Questions