Link to home
Start Free TrialLog in
Avatar of aacrg
aacrg

asked on

Debugging D5 design time (package)

I have to debug the initialization of one of my components at design time. I set several breakpoints in the package and runned a second delphi - but delphi does neither stop on the breakpoints nor show me the source code when it stops on a exception. It just stops on exceptions and shows me the CPU window.
What I'm doing wrong?
Avatar of jeurk
jeurk

You have the source in the path ?
you have not checked the optimized dircetive and you have not build it with runtime packages ?
Avatar of aacrg

ASKER

I have the sourcepath (where the *.pas lies) in the environment search path.
I have checked the optimize directive and it is a runtime package. (I'm not debugging a property editor or component editor. I'm debugging the component itself - but at design time.)
ok, I understood that.
Could you try to uncheck the optimize directive ?
Do you have a blue dot in your IDE at the line you set a break point ?
sorry it may sound a bit basic but I cannot imagine you level from here ;) ...
Avatar of aacrg

ASKER

The optimize flag doesn't change anything.  I have set source path for debugger. I have this blue dots - till I run the second Delhpi.exe.
all you have to do is to declare the creation manually... i mean get a var of your type and run the constructor... then set the breakpoints...

try that...
Avatar of aacrg

ASKER

Sorry, how to? I have to debug recreating the inherited properties.
listening...
ASKER CERTIFIED SOLUTION
Avatar of shenqw
shenqw

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aacrg

ASKER

The problem was that delphi clears the reference info flag when you compile the package/project. I suggest that the points belongs to jeurk.
Thanx, aacrg.
shenqw changed the proposed answer to a comment
Avatar of aacrg

ASKER

Now it works, but I really don't know who of you helped me to get there... The problem with the reference info has gone - i've no idea why...
aacrg
Listening
Avatar of aacrg

ASKER

Sorry, I nearly forgot that Q. Who of you is going to get the points? Should I ask EE to share the points?
Hi,
If you can see who helped you...
If you do'nt know just delete the question.
At last if nobody wants the points and you absolutely want to give them out...
Give them to me ;) with an A ;)
Ok, just kidding...
CE
Avatar of aacrg

ASKER

shenqw, what do you think?
hi,aacrg
  It's decided by you.  :)))
  whoever you give the points to,I will agree with you.

shenqw
Avatar of aacrg

ASKER

Comment accepted as answer
Avatar of aacrg

ASKER

I accepted it as answer because it was the completest description how to do it.