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.
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.
相关文章推荐
- Debugging WebLogic Server Applications Using Eclipse and the WebLogic-Plugin
- Building GDB and GDBserver for cross debugging / Linux下交叉编译gdb和gdbserver
- The associated COM server does not support ActiveX Document embedding
- Debugging WebLogic Server Applications Using Eclipse and the WebLogic-Plugin
- AspExe - a small ASP.NET compiler and executor for document generation
- 《Advanced .NET Debugging》 读书笔记 Listing 3-4/3-5: 为breakpoint.exe程序的AddAndPrint方法加上breakpoint
- Querying Active Directory using .NET classes and LDAP queries(http://www.codeproject.com/dotnet/activedirquery.asp)
- The associated COM server does not support ActiveX Document embedding
- The Anatomy of a COM Server(Chapter 2 of COM and .NET Interoperability) part1
- The Anatomy of a COM Server(Chapter 2 of COM and .NET Interoperability) part2
- COM笔记 (1)SAMPLE: MFCAxs.exe Implements an Active Script Host Using MFC 用MFC实现script引擎host
- COM模块三---根的形成和注册代理server(Building and Registering a Proxy DLL)
- HOW TO: Debug Visual Basic COM Components That Are Used Within Active Server Pages
- 在 System.NullReferenceException 中第一次偶然出现的“ComServer.exe”类型的异常
- document.execComand()参数说明
- 如何注册/注销COM Exe Server
- 病毒报告:Proxyserver.dll zkeyHook.dll winplaybdbcom.exe winplayfuwu winplaybdcom
- Cross-domain calls and server side debugging of Silverlight application
- 如何调试ATL COM Exe Server
- SSIS lookup transformation http://www.katieandemil.com/ssis-lookup-transformation-example-sql-server