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

The debugger runs on the wrong line

742 views
Skip to first unread message

M.Feoli

unread,
Jan 4, 2002, 4:05:06 AM1/4/02
to
I have installed D5 and D6 on my NT SP6 system, for some extrange reason on
Delphi 6 when setting a breakpoint or stepping the debugger shows a
different line than the actual one it is about to execute, for example
shows about 3 or 4 lines up of the real executing instruction, therefore if
I want to stop on a specific line, I will have to set the breakpoint 4
lines up.

Delphi 5 has allways done it right on the same system.

Any clues anyone?


Maurie Seymour

unread,
Jan 4, 2002, 10:56:46 AM1/4/02
to
When this happened to me in Delphi 3, a "Build All" fixed it.

Maurie

M.Feoli

unread,
Jan 4, 2002, 6:08:58 AM1/4/02
to
Thanks Maurie but I've tried this already and keeps on the same problem


Maurie Seymour <mau...@pacbell.net> wrote in message
news:3C35D0BE...@pacbell.net...

Frank

unread,
Jan 4, 2002, 12:22:02 PM1/4/02
to
This exactly happened to me too in D5.
It turned out to be an undetected stack problem (stack overflow).
When I increased the stack size, the behaviour disappeared.
Do you use the same stack size (or other compiter settings)?
These are not a part of your project settings.
Frank.

M.Feoli

unread,
Jan 4, 2002, 7:14:07 AM1/4/02
to
I use the standard settings, when I change the stack size in the
project/options/max stack size, the behaviour doesn't change.

Where did you change the stack size sitting?

Frank <nos...@nospam.com> wrote in message news:3c35e511$1_1@dnews...

Pete Mountain

unread,
Jan 5, 2002, 5:40:18 PM1/5/02
to
I have found two things that fix this in D3:

(1) Delete your .DSK files
(2) Remove all units from the project manager list, then add them back
in.

HTH

Brad White

unread,
Jan 7, 2002, 5:46:20 PM1/7/02
to
This is caused by a change between D5 & D6
that was made to accommodate Kylix.

You have lines in your pas file that are not
properly terminated.

Copy all the text into notepad, save it, close it,
reopen it, and copy it back into Delphi to
replace all the text in your unit.

This should fix it.

I don't know why they made the editor and the
compiler/debugger so that they handle EOLN
differently.

--
HTH,
Brad White.
SCP, Inc
-------------------------------
Reply to: SCP_Inc at hotmail dot com
"M.Feoli" <manriqu...@kinetos.com> wrote in message
news:3c35c4bd_2@dnews...

Frank

unread,
Jan 8, 2002, 10:28:20 AM1/8/02
to
> Where did you change the stack size sitting?

Same place as yours: at the "Linker" tab of the project options.
Sorry it didn't help.


M.Feoli

unread,
Jan 8, 2002, 5:52:03 AM1/8/02
to
Thanks a Lot Brad, I'll do just that

Brad White <Brad_...@deja.com> wrote in message news:3c3a24f8_1@dnews...

Eric Zurcher

unread,
Jan 10, 2002, 8:12:43 PM1/10/02
to
I have had some very annoying problems misaligned breakpoints within D6
when attempting to debug dynamically-loaded DLLs. These problems do not
appear to be due to anything as straightforward as line terminators.
Interestingly, closing the project then re-opening it does not fix the
misalignment; but shutting down the IDE completely then restarting it
corrects the problem.

Is anyone else facing this problem?

Len Jones

unread,
Jan 10, 2002, 9:51:28 PM1/10/02
to
Eric,

I've just been complaining about this under the subject 'Compiler ignoring
new code' I had to reboot twice before the problem went away. Running D6
personal on XP.

--
Len Jones

"Eric Zurcher" <Eric.Z...@pi.csiro.au> wrote in message
news:3C3E3C0...@pi.csiro.au...
: I have had some very annoying problems misaligned breakpoints within D6
...
: Is anyone else facing this problem?

0 new messages