调试服务程序以及进程外组建的方法
来源:互联网 发布:python二维数组 编辑:程序博客网 时间:2024/06/06 21:17
http://msdn.microsoft.com/en-us/library/a329t4ed(vs.71).aspx
Launching the Debugger Automatically
Visual Studio .NET 2003
Other Versions
You can set up your application to start Visual Studio when you launch the application from Windows. Visual Studio will load your application, ready for debugging, but will not commence debugging until you issue an execution command. Having Visual Studio launch the debugger in this way is useful for debugging services and COM out-of-proc servers.
To setup an application to launch the debugger automatically
- Start the Registry Editor (regedit).
- In the Registry Editor, open the HKEY_LOCAL_MACHINE folder.
- Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.
- Under the Image File Execution Options folder, locate the name of the application you want to debug (myapp.exe, for example). If you cannot find the application you want to debug:
- Right-click the Image File Execution Options folder and choose New Key from the shortcut menu.
- Right-click the new key and choose Rename from the shortcut menu.
- Edit the key name to the name of your application, for example,
myapp.exe
.
- Right-click the myapp.exe folder and choose New String Value from the shortcut menu.
- Right-click the new string value and choose Rename from the shortcut menu.
- Change the name to
debugger
. - Right-click the new string value and choose Modify from the shortcut menu.
The Edit String dialog box appears.
- In the Value data box, type
devenv /debugexe
. - Click OK.
- From the Registry menu, choose Exit.
The directory containing devenv.exe must be in your system path.
Now, use any method to start your application. Visual Studio .NET will start and load the application.
Note If the application is managed, Visual Studio launches with the Debugger Type set to Auto. Before you debug, change the Debugger Type from Auto to Mixed in the Property Pages dialog box. For more information, see Specifying Debugger Settings.
See Also
Using the Debugger
0 0
- 调试服务程序以及进程外组建的方法
- c# 调试Windows服务程序的方法
- c# 调试Windows服务程序的方法
- Windows服务程序的调试方法
- 调试服务程序的若干方法
- delphi服务程序(service)的调试方法
- delphi服务程序(service)的调试方法
- win7注册进程外组件, 服务, 以及COM组件调试
- .Net服务程序调试方法
- Delphi调试服务程序的两种方法
- 在服务程序中创建用户进程的方法
- 在服务程序中创建用户进程的方法(C++)
- Windows服务程序的调试
- windows服务程序的调试
- windows服务程序的调试
- Windows服务程序的调试
- VS 通过 附加进程的方式来调试 C#服务程序
- 断言以及程序的调试
- power of power: the real one
- inet_pton
- as3.0 MouseEvent事件
- Android Please ensure that adb is correctly located at问题解决
- 前端网页编写
- 调试服务程序以及进程外组建的方法
- Java中String和StringBuffer的效率
- pip install MySQL-python error in virtualenv on mac
- 每日锻炼--2
- 批处理中for循环使用的一些误区
- iOS调用系统相册、相机 显示中文标题
- [转]linux shell 获取当前正在执行脚本的绝对路径
- 11-1-(1)-存储班长信息的学生类(protected)
- select/poll/epoll事件驱动