Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: debug/unittest a compiled Delphi App with debuginfo?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Dec 11, 2017 10:35 AM Last Post By: Peter Below
Peter Herijgers

Posts: 20
Registered: 3/16/00
debug/unittest a compiled Delphi App with debuginfo?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 11, 2017 2:07 AM
Hi All,

Is it possible to debug/unittest a compiled Delphi App with debuginfo?

Now I have something like this:

Component := FMain.FindComponent(CompName);
If Component <> Nil
Then Begin
TypInfo.SetPropValue(Component, PropName, Value);
End;

Can I search for components in a compiled Delphi App with debuginfo?

Thanks,
Peter
Peter Below

Posts: 1,227
Registered: 12/16/99
Re: debug/unittest a compiled Delphi App with debuginfo?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 11, 2017 10:35 AM   in response to: Peter Herijgers in response to: Peter Herijgers
Peter Herijgers wrote:

Hi All,

Is it possible to debug/unittest a compiled Delphi App with debuginfo?

Now I have something like this:

Component := FMain.FindComponent(CompName);
If Component <> Nil
Then Begin
TypInfo.SetPropValue(Component, PropName,
Value); End;

Can I search for components in a compiled Delphi App with debuginfo?

The format of the debug information is undocumented, as far as I know.
You should be able to do what you want either using run-time type
information (you need a newer Delphi version for that, the old RTTI is
not enough), or actually do it without resorting to RTTI at all. In a
standard RAD application you can find all existing forms, frames, or
datamules by looking at the relevant properties of the Screen object,
or by working through the Components array of the Application object
(if said components are created with Application as owner). Components
dropped on forms etc. can be found into container's Components array,
controls can also be found by iterating (recursively) of the
container's Controls array.

--
Peter Below
TeamB
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02