Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable F12 to debug application in Visual Studio 2012

If I hit F12 while my application runs under Visual Studio in debug mode, the WM_KEYDOWN never reaches my event loop, but it immediately triggers a breakpoint. Is it possible to disable this feature, or reassign it to another, less conflicting hotkey (e.g. CTRL+F12)? I figure the must be a registry key, but I can't find it...

Any help is greatly appreciated!

like image 445
digory doo Avatar asked Sep 25 '13 06:09

digory doo


1 Answers

F12 is a reserved key for the debugger and its kernel-based 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 this from http://conemu.github.io/en/GlobalHotKeys.html

like image 97
Henry Hoendervangers Avatar answered Sep 18 '22 19:09

Henry Hoendervangers