Show: Delphi C++
Testing and Debugging the Application
From RAD Studio
Go Up to Creating Simple COM Servers Index
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 Project > Options dialog box, if necessary. Also, turn on Integrated Debugging in the Tools > Options > Debugger Options dialog.
- For an in-process server, choose Run > Parameters, type the name of the Automation controller in the Host Application box, and choose OK.
- Choose Run > Run.
- 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 Embarcadero Debuggers page of the Tools > Options > Debugger Options dialog to enable cross-process support.