Recently, I was debugging a difficult piece of code, an extension DLL that works in the context of a complex commercial application.
Here are a few things of note from this effort that I wish to record for posterity:
First, the gflags.exe utility, which can be obtained as part of Microsoft's Debugging Tools for Windows. To set debugging flags for an application, use something like
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe /i theapp.exe +0x67C68AFD
To remove all debugging flags, use
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe /i theapp.exe +0xFFFFFFFF
Also, here are a few important links: