Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Erratical debugging behaviour of Delphi Editor .

9 views
Skip to first unread message

Tanju ÖZGÜR

unread,
Mar 6, 2006, 10:48:10 AM3/6/06
to
Hi!

I'm using an app. which uses couple of units to perform a operation/tasks
etc.. .At the MainUnit.pas I can set the breakpoints and run the program,
when the compiler comes to breakpointed line(crimson color) it stops as
usually and doesn't jumps to the unit where the refered function/procedure
resides. Even pressing F7(step into) doesn't help, compiler runs through the
code as if I pressed F8. In the case ,I set the breakpoints at the unit
where func/procs are breakpoints somehow becomes


Any Idea ?


Peter Below (TeamB)

unread,
Mar 6, 2006, 12:46:37 PM3/6/06
to

This is usually a sign for DCUs that have not been build with debug information
(the debug-related checkboxes on the project options compiler page, not the
stuff on the linker page). Or you have more than one copy of the DCU around and
IDE debugger does not find the one with debug info you created with the last
rebuild.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be


Tanju ÖZGÜR

unread,
Mar 7, 2006, 1:21:48 AM3/7/06
to
Dear Peter,

I hav done as you said go to the Project/Options/Compiler/Debugging
RadioGroup and all the items were checked but the Use Debug DCUs (checking
it not doesn't change anything), this means that debug info is enable in
this case. Checked Delphi7/Lib to make sure that not more than one instance
of "SCDrawingSurface.dcu" exists(only one copy was there). What else can I
do ? Am I doing something wrong ?

Thnx for help,

Regards,

"Peter Below (TeamB)" <10011...@compuXXserve.com>, haber iletisinde
sunlari yazdi:VA.0000c6c...@nomail.please...

Peter Below (TeamB)

unread,
Mar 7, 2006, 2:08:12 PM3/7/06
to
In article <440d...@newsgroups.borland.com>, Tanju ÖZGÜR wrote:
> I hav done as you said go to the Project/Options/Compiler/Debugging
> RadioGroup and all the items were checked but the Use Debug DCUs (checking
> it not doesn't change anything), this means that debug info is enable in
> this case. Checked Delphi7/Lib to make sure that not more than one instance
> of "SCDrawingSurface.dcu" exists(only one copy was there). What else can I
> do ? Am I doing something wrong ?

Are you putting your own DCUs into the Delphi LIB directory? That is not a
good idea, IMO. Search *all* of your disk for the dcu in question, there may
be a copy elsewhere. Do you have the "unit output directory" in the project
options set? If yes the DCUs will go into this folder. If the setting is empty
they will go into the projects home folder (where the DPR file sits). They
should never end up in the Delphi LIB directory unless you have set the unit
output directory to that.

Tanju ÖZGÜR

unread,
Mar 8, 2006, 1:23:20 AM3/8/06
to
I didn't change anything but now it works well for unknown reason (not
Debugger Settings/not Output Unit Settings) I just left them as is.

thanks for helping me Peter and I 'll keep in mind your suggestions.

"Peter Below (TeamB)" <10011...@compuXXserve.com>, haber iletisinde
sunlari yazdi:VA.0000c6c...@nomail.please...

0 new messages