RAD Studio
ContentsIndex
PreviousUpNext
Testing and Debugging the Application

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,

  1. 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.
  2. For an in-process server, choose RunParameters, type the name of the Automation controller in the Host Application box, and choose OK.
  3. Choose RunRun.
  4. Set breakpoints in the Automation server.
  5. 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.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!