Lauch Debugger automatically when start the process
2011-01-30 10:00
363 查看
通常我们在debug的时候一般都是启动程序后在visual studio里点击Attach Process。但是有些时候我们需要在程序启动的时候就开始debug,所以这个时候我们需要做一些设置,让visual studio从一开始就attach到我们的程序上。
To setup an application to launch the debugger automatically
打开注册表.
打开 HKEY_LOCAL_MACHINE .
找到 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.
在注册表键 Image File Execution Options 下,找到你的进程的名字
(比如myapp.exe). 如果下面没有,就自己创建一个:
右击 Image File Execution Options,选择New Key .
右击新创建的key,选择 Rename .
编辑成你的进程名字,比如
右击myapp.exe, 选择 New String Value .
重命名为debugger.
将该key value设置为
http://msdn.microsoft.com/en-us/library/a329t4ed%28VS.71%29.aspx
To setup an application to launch the debugger automatically
打开注册表.
打开 HKEY_LOCAL_MACHINE .
找到 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.
在注册表键 Image File Execution Options 下,找到你的进程的名字
(比如myapp.exe). 如果下面没有,就自己创建一个:
右击 Image File Execution Options,选择New Key .
右击新创建的key,选择 Rename .
编辑成你的进程名字,比如
myapp.exe.
右击myapp.exe, 选择 New String Value .
重命名为debugger.
将该key value设置为
devenv /debugexe
http://msdn.microsoft.com/en-us/library/a329t4ed%28VS.71%29.aspx
相关文章推荐
- How to make app start automatically When the application starts
- Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running
- How to assign the priority when using rspc_api_chain_start?
- AndroidStudio Unable to start the daemon process(无法启动Gradle守护进程)
- [tip debugging]Attach VS debugger to more than one process at the same time
- 驱动中获取PsActiveProcessHead变量地址的五种方法也可以获取KdpDebuggerDataListHead
- Error:Unable to start the daemon process. 解决
- The different way to start a service(Bind_auto_create will just create a service and the service will exit when unbind)
- android studio Error:Unable to start the daemon process
- Unable to start the daemon process
- When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance.
- Android Studio Unable to start the daemo process,Gradle报错
- android studio Error:Unable to start the daemon process
- Automatically attaching a debugger to a process every time it is launched
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- android studio Error:Unable to start the daemon process【转】
- idea初学者:Cannot start process, the working directory 'F:\hello\hello' does not exist
- Error:Unable to start the daemon process: could not reserve enough space for object hea
- Event Handler to trigger User process tasks when the associated Organization is updated
- Android Studio Gradle 'XXX' project refresh failed:Unable to start the daemon process