Debug exe in visual studio 2010

前端 未结 2 727
暗喜
暗喜 2021-01-26 03:25

Is there a way to debug external exe using visual studio 2010 by shift+double click to run the exe. Normally, to run the application in a special mode we have press the shift a

2条回答
  •  爱一瞬间的悲伤
    2021-01-26 04:09

    So basically you want to attach debugger as soon as the process starts. This should help. Source http://blogs.msdn.com/b/greggm/archive/2005/02/21/377663.aspx

    • Run regedit.exe
    • Goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
    • Create a new key for your exe (example: foo.exe)
    • Create a new string value under your exe. The name of the string value is 'Debugger', and the value is 'vsjitdebugger.exe'

提交回复
热议问题