Debug exe in visual studio 2010

前端 未结 2 723
暗喜
暗喜 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:03

    If I understand enough of that, you want to debug a program not launched by VS.. In vs pro+ you can select "debug" and then "Attach to process" so you would start your applicaiton and then can attach to it.

    0 讨论(0)
  • 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'
    0 讨论(0)
提交回复
热议问题