Debugging COM server (.EXE Server and Active Document)

来源:互联网 发布:虎牙直播 知乎 编辑:程序博客网 时间:2024/06/08 20:10

 Starting to debug the out of prcocess server application is a three-step process

  1. Start debugging the server as a normal application.
  2. Set breakpoints as desired.
  3. Start the container application.

If you are debugging an SDI/MDI server application (Active Document), you must specify /Embedding or /Automation in the Command line arguments in the project setting

In VS 2005, select Project menu ==> Find and click Setting menu item ==> Project setting dialog pops up==> Unfold Configuration ==> Select Debugging ==> Click text box beside Command Line ==> Input /Automation

With these command line arguments, the debugger can launch the server application as though it were launched from a container. Starting the container from Program Manager or File Manager will then cause the container to use the instance of the server started in the debugger.

原创粉丝点击