Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.
like image 890
maycil Avatar asked Feb 24 '12 07:02

maycil


People also ask

How do I use F10 and F11 in Visual Studio?

F10 ("step over") does not descend any further into the call stack. It moves to the next line of the current function. F11 ("step into") drills down into the function being called. If you hit a breakpoint on function2() , F10 will advance to the line function3() .

How do I enable F11 in Visual Studio?

Check if you have function lock key -- 'F Lock' key on keyboard. If so then try pressing it once and then press F11 for debuging. Alternatively you can verify the working of F11 outside Visual Studio using it on IE or other windows and keying F11 , this should maximize the window. F Lock it is.

How do you get to the next step in Debug mode in Visual Studio?

In most languages supported by Visual Studio, you can edit your code in the middle of a debugging session and continue debugging. To use this feature, click into your code with your cursor while paused in the debugger, make edits, and press F5, F10, or F11 to continue debugging.


2 Answers

CamStudio application was the issue in my case.
Somehow it reserved this key to itself and Visual Studio was not able to use it anymore (I've tested it MS Word (Alt+F10 - was working as expected, while CamStudio was on - when minimized it appears only in SysTray)).
I've closed CamStudio and it was fine:
F10 functionality "reappeared" in VS2008.

like image 150
AdiKonstantin Avatar answered Oct 20 '22 06:10

AdiKonstantin


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.

like image 43
Joe H Avatar answered Oct 20 '22 06:10

Joe H