HOWTO remove F12 exceptions during debugging sessions

I was debugging a new feature when I discovered that every time VK_F12 is pressed, the debugger triggered an exception.

After some investigations, I found this forum thread, and I discovered that it is a kernel debugger reserved key.

The Solution

To fix this annoying problem, we can remap this hotkey going into the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug

and editing the following value:

UserDebuggerHotKey

Setting it to the suggested value (0x13 – VK_PAUSE) has fixed this annoying problem.