Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 - F10 / F11 stopped working on upgrade?

Tags:

I just upgraded my Visual Studio from 2012 to 2013 and haven't done anything else yet short of installing all the updates recommended.

For whatever reason, when I go into my solution and press F10 or F11, it runs the entire program as if I had pressed F5... F8 works the way F10 used to, but I don't know why the keys I've always used now don't.

I set up visual studio as a VB environment.

How can I fix this?

Thanks!!!

Additional Info:

Just to add on as much information as I can, if I set a breakpoint in my code, then I can use F10 / F11 to continue stepping through my code once the breakpoint is hit and execution is stopped as would be expected.

EDIT 2013-12-31:

Based upon a comment made by Neolisk, it appears this is simply a change in default behavior in Visual Studio 2013... If anyone knows how to change this back to the way it was in 2012, that would be GREATLY appreciated, but at least I now know it's not an error / installation issue.

like image 360
John Bustos Avatar asked Dec 13 '13 19:12

John Bustos


People also ask

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 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() .

What is the use of F11 key in Visual Studio?

The F11 key in the Microsoft Visual Studio 2005 environment activates the Step Into debug function.


2 Answers

If 2013 works the same as previous versions, then do the following:

  • Navigate to Tools > Import and Export Settings
  • Choose "Import selected environment settings"
  • On the next screen, choose to save your current setings if you want to.
  • When you get to the point where you can import, just select "General Development Settings"

That should set everything back to what you're probably used to. Most people are set up using general settings and either don't realize it or just forget.

EDIT: If your issue is that the program executes when you press F10 or F11 when you are not debugging, then I think you might be out of luck. It's done that to me personally since VS 2008 (I'll frequently miss the F12 key when I'm in a hurry), and, after some searching, I think it actually happens to everyone:

  • Visual Studio - Prevent F11 from starting the debugger?

My guess is that this is a side-effect of not being able to set contextual hot keys based on whether you are or are not debugging. Since F10 and F11 are tied to debug-execution-related operations, my guess is that Visual Studio realizes that it needs to be debugging to process them, and thus starts the program.

ANOTHER EDIT: Of course, it's also possible that you had the scheme set to something else entirely in VS2012. Check out all of Visual Studio's pre-defined hotkeys by environment here: http://msdn.microsoft.com/en-us/library/da5kh0wa(v=vs.120).aspx

If none of those have the mappings that you're used to for F8, F10, or F11, then it's possible that you or an add-on may have had few custom hotkeys defined.

Worst-case scenario, you can simply redefine your shortcuts manually by key in the keyboard settings: Tools > Options > Environment > Keyboard

like image 181
valverij Avatar answered Nov 02 '22 05:11

valverij


It sounds like you are in VB settings and not C#. You should try changing your settings to one or the other and see if those debug options change. On my machine

Tools - Import Export Settings - Reset All Settings - C# (If you want F10/F11) VB if you want F8/Shift-F8. It doesn't matter what your settings are you can still code in both languages, but if you are used to pressing F10 to debug VB.NET code you've been using C# settings this whole time. Nothing new with Visual Studio in this regard. I am using VS2013 Ultimate, have been using Visual Studio since VS2003.

The first image is VB.net, second is C# settings VB.Net Settings

enter image description here

like image 37
Jason Hughes Avatar answered Nov 02 '22 05:11

Jason Hughes