Testing Installed Components
You can test the design-time behavior of a component after you install it on the Tool palette. This is particularly useful for debugging newly created components, but the same technique works with any component, whether or not it is on the Tool palette. For information on testing components that have not yet been installed, see Testing Uninstalled Components.
Testing your components after installing allows you to debug the component that only generates design-time exceptions when dropped on a form.
Test an installed component using a second running instance of the IDE:
- Choose Project > Options > Debugger and set the Debug Source Path to point to the component's source file.
- Then select Tools > Options . On the Debugger Options > Borland Debuggers > Language Exceptions page, enable the exceptions you want to track.
- Open the component source file and set breakpoints.
- Select Run > Parameters and set the Host Application field to the name and location of the Delphi executable file.
- In the Run Parameters dialog, click the Load button to start a second instance of Delphi.
- Then drop the components to be tested on the form, which should break on your breakpoints in the source.