Why does F10 (step over) in Visual Studio 2010 not

2019-06-15 07:08发布

I also tried 2 solution. But It doesn't worked.

  1. Go to Tools > Options menu in Visual Studio.
  2. Go to Debugging > General menu item in left pane.
  3. In right view you will see and option Step over properties and operators (Managed only). Uncheck this option and then you are all set.

and

  1. Go to Tools > Options menu in Visual Studio.
  2. Go to Debugging > General menu item in left pane.
  3. In right view you will see and option Enable Just My Code (Managed only). Uncheck this option and then you are all set.

11条回答
太酷不给撩
2楼-- · 2019-06-15 07:46

I had a similar problem on a Microsoft Ergonomic keyboard: F10 did not work as a step over for the debugger. Yet at the same time Fn-F10 worked on the Lenovo laptop. I found a resolution for the Microsoft Ergonomic keyboard: Press the Function lock key just to the right of F12. This is a toggle key that had the function keys turned off.

查看更多
在下西门庆
3楼-- · 2019-06-15 07:52

Turns out my issue was simpler/more embarassing, but I figured I'd post it just in case it helps someone else.

I had the F Lock (function key lock) turned off, so my F10 keypress wasn't being sent as such. With these newer keyboards (mine is an MS wireless keyboard), there are several modifier keys that affect the keyboard behavior.

Once I enabled F Lock, everything worked as expected.

查看更多
劫难
4楼-- · 2019-06-15 07:53

I know this is an old issue, but it's one of the first search results for "Visual Studio F10 not working," so I wanted to post one possible solution here in case anyone else runs across this page with the same problem. My problem was caused by a very specific situation, so it might not work for everyone. The issue was the F10 shortcut simply was not working at all. Nothing happened when pressed. When I tried to reset the shortcut key for the Debug.StepOver, it wouldn't accept F10 as input.

SOLUTION: "Thaw" or uninstall Deep Freeze. I was using software called Deep Freeze to protect certain partitions on my hard drive. Unfortunately, Deep Freeze was protecting ALL of my hard drives, regardless of which drives I specified in the settings. When it was in "frozen" mode, it was causing crashes, hangs, and strange and erratic behavior in other programs including Visual Studio. When I rebooted in "thawed" mode, the problems went away and I regained the ability to F10 normally. Deep Freeze is commonly used on school and business computers, in which case you'd have to contact an administrator to deal with it, or alternately, set a different key combination for Debug.StepOver.

On a side note, also make sure that you're in DEBUG mode, not release mode, when trying to use F10 to step over.

查看更多
forever°为你锁心
5楼-- · 2019-06-15 07:58

Similar to the last post, I had another application that was open. So make sure all third party software is closed. In my situation I had installed CamStudio (screen recorder software). The moment I closed it I was able to start using F10 key again.

查看更多
我欲成王,谁敢阻挡
6楼-- · 2019-06-15 07:59

Hey I also encountered this problem. I was debugging a c++ project.

For people who still suffer from this problem, try changing the properties of "Devenv.exe" under the "Compatibility" tab to "Run as Administrator".

This solved it for me, I hope it works for you too.

查看更多
登录 后发表回答