How to disable F12 for debugging applications in Visual Studio 2012

If I press F12 while my application is running under Visual Studio in debug mode, WM_KEYDOWN never reaches my event loop, but immediately causes a breakpoint. Is it possible to disable this function or reassign it to another, less conflicting hotkey (for example, CTRL + F12)? I believe that there should be a registry key, but I can not find it ...

Any help is much appreciated!

+4
source share
3 answers

F12 is a reserved key for the debugger and its https://msdn.microsoft.com/en-us/library/windows/desktop/ms646309.aspx

But you can change the registry entry

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ AeDebug] UserDebuggerHotKey = dword: 00000000

to something else like 0x13 (Pause)

got it from http://conemu.imtqy.com/en/GlobalHotKeys.html

+4
source

You can disable it from Tools-> options-> Keyboard

0
source

It is easy to reassign such a value as you like.

1) Go to the "Tools / Options" section and press "Keyboard" (in the environment). Then find the command associated with F12. Which one depends on which mapping scheme you use, so I can’t tell you the one you find.)

Then change it to whatever you want.

Too bad, I can not add comments ...

When I type F12 (for the Press shortcut keys), I get Edit.GoToDefinition. If I delete this task and then try again, it shows how it is used with Page Inspector.

If you enter F12 and you see nothing, you can assume that VS is not using F12, but something else.

You can simply try to assign F12 to something and see if it is called instead - then at least you will have some idea of ​​whether the VS controls it or something external VS.

Remember that you can also have some kind of application that reassigned F12 so that when you click on it your application will receive a signal that some other key or key combination has been pressed (happened to me once.)

0
source