您的位置:首页 > 移动开发

Debugging COM server (.EXE Server and Active Document)

2006-09-15 16:40 555 查看
 Starting to debug the out of prcocess server application is a three-step process

Start debugging the server as a normal application.

Set breakpoints as desired.

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐