exe启动时用VS进行调试
将exe关联到VS调试器上,当exe启动时会自动启动VS进行调试(以test.exe为例)
1. 在以下目录新建项 test.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
2. 在以下目录新建字符串值,名字为 Debugger,值为 vsjitdebugger.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\test.exe
亦即:
HKEY_LOCAL_MACHINE…\Image File Execution Options\test.exe\Debugger=“vsjitdebugger.exe”
3. Debugger 的值也可以为其他调试器,如 Windbg
HKEY_LOCAL_MACHINE…\Image File Execution Options\test.exe\Debugger=“xxx”
其中 xxx 为 windbg.exe 的全路径
4. 事实上,Debugger的值表明将自动启动什么程序,我们亦可以设为某个exe的全路径,则两个程序绑定启动
(转载请注明出处: https://blog.csdn.net/u010350434 北魏的小Eif)