Once you have created a COM server application, you will want to test it before you deploy it.
To test and debug your COM server application,
- Turn on debugging information using the Compiler page on the ProjectOptions dialog box, if necessary. Also, turn on Integrated Debugging in the ToolsOptionsDebugger Options dialog.
- For an in-process server, choose RunParameters, type the name of the Automation controller in the Host Application box, and choose OK.
- Choose RunRun.
- Set breakpoints in the Automation server.
- Use the Automation controller to interact with the Automation server.
The Automation server pauses when the breakpoints are reached.
Note: As an alternate approach, if you are also writing the Automation controller, you can debug into an in-process server by enabling COM cross-process support. Use the CodeGear Debuggers
page of the
ToolsOptionsDebugger Options dialog to enable cross-process support.