Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Debugging D5 design time (package)

Posted on 2000-04-25
18
334 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:aacrg
  • 9
  • 3
  • 3
  • +3
18 Comments
 
LVL 4

Expert Comment

by:jeurk
ID: 2747752
You have the source in the path ?
you have not checked the optimized dircetive and you have not build it with runtime packages ?
0
 

Author Comment

by:aacrg
ID: 2747813
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.)
0
 
LVL 4

Expert Comment

by:jeurk
ID: 2747884
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 ;) ...
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:aacrg
ID: 2748050
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.
0
 
LVL 1

Expert Comment

by:fulg0re
ID: 2749010
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...
0
 

Author Comment

by:aacrg
ID: 2750389
Sorry, how to? I have to debug recreating the inherited properties.
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2750430
listening...
0
 
LVL 3

Accepted Solution

by:
shenqw earned 200 total points
ID: 2753618
OK, Follow me step by step:

1. First,Create your package.
2. In your package window,right click ,run Options.... command.
  set the Optimization off, All Debugging on. also in Directories/Conditions
page ,Set Search path : $(delphi)\source\vcl. Attenion, correct setting is in
package window. not in the Project|Options....
3. Build All and Install the package.
4. Exit All Delphi IDEs.
5. Find the package file, DBLClick the file to only open it alone.
6. Set Run|Parameters....  Host Application to C:\Program Files\Borland\Delphi5\Bin\delphi32.exe
(Your own correct path).
7. In you package file, you can set the breakpoint.like at  Register, .Create
and so on.
8. Click Run. Then you can debug your package now.

//I had tried successfully. based on Win98/NT+Delphi5+Pack1.
0
 

Author Comment

by:aacrg
ID: 2755613
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.
0
 
LVL 3

Expert Comment

by:shenqw
ID: 2805051
shenqw changed the proposed answer to a comment
0
 

Author Comment

by:aacrg
ID: 2805342
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
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2887167
Listening
0
 

Author Comment

by:aacrg
ID: 2889873
Sorry, I nearly forgot that Q. Who of you is going to get the points? Should I ask EE to share the points?
0
 
LVL 4

Expert Comment

by:jeurk
ID: 2890283
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
0
 

Author Comment

by:aacrg
ID: 2890543
shenqw, what do you think?
0
 
LVL 3

Expert Comment

by:shenqw
ID: 2891258
hi,aacrg
  It's decided by you.  :)))
  whoever you give the points to,I will agree with you.

shenqw
0
 

Author Comment

by:aacrg
ID: 2891703
Comment accepted as answer
0
 

Author Comment

by:aacrg
ID: 2891704
I accepted it as answer because it was the completest description how to do it.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Internet Explorer View Settings Question 15 116
Print Graphic and Text to Epson TM-T88v 12 378
Firemonkey webbrowser scrollbars ? 1 50
RESTRequest Parameter 4 42
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question