Show: Delphi C++
Display Preferences

Testing Installed Components

From RAD Studio
Jump to: navigation, search

Go Up to Introduction to component creation Index

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:

  1. Choose Project > Options > Debugger and set the Debug Source Path to point to the component's source file.
  2. Then select Tools > Options . On the Debugger Options > Borland Debuggers > Language Exceptions page, enable the exceptions you want to track.
  3. Open the component source file and set breakpoints.
  4. Select Run > Parameters and set the Host Application field to the name and location of the Delphi executable file.
  5. In the Run Parameters dialog, click the Load button to start a second instance of Delphi.
  6. Then drop the components to be tested on the form, which should break on your breakpoints in the source.
Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance