Hi
I'm having trouble figuring out how to debug a visual control at design
time. I've created the source file "VisualControl.pas" and a new package
"dcontrols.dpk" which I've compiled and installed on the component pallet.
Now I want to catch the OnResizeEvent of my control at design time, when I
drop it on a form.

The help states the following:

1 From the Delphi IDE menu select Project|Options|and on the
Directories/Conditionals page, set the Debug Source Path to the component's
source file.
2 Then select Tools|Debugger Options. On the 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.

But which project should be currently open in the IDE? A new project with
just a blank form? In which case, what is the Host application? I only have
a compiled package BPL containing the control, not an executable. I can't
make heads or tails of this.

Todd.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to