Board index » delphi » Debug doesn't want to stop at a break point

Debug doesn't want to stop at a break point

I am working with delphi 2.0 for sometime now, and for no reason
(as it appears to me) the de{*word*81} does not seem to function properly anymore!

Whenever I start my program (project) in the delphi environment, it will only stop
at the first breakpoint it encounters. Pressing F7 or F8 (step into or step over)
gives the same result as F9 (run). So debugging gets irritating.

If I load an other project (a demo one for instance) the de{*word*81} works fine.

Has anyone encountered this as well, and if you did, how did you solve this problem?

If anyone could help, I would be very pleased.

Otto
O.Berg...@lr.tudelft.nl

 

Re:Debug doesn't want to stop at a break point


Is it possible that you are setting the breakpoint on a {COMMENT} line or
something similar?  The compiler probably removes these lines before it
executes your program.  Your breakpoint might be getting removed along with
the comment line.

Just a thought, hope it helps.

-------------
Steve Bygrave
Nova Scotia, Canada.
sbygr...@fox.nstn.ca

Otto Bergsma <O.Berg...@lr.tudelft.nl> wrote in article
<5o8njc$on...@news.tudelft.nl>...

Quote
> I am working with delphi 2.0 for sometime now, and for no reason
> (as it appears to me) the de{*word*81} does not seem to function properly
anymore!

> Whenever I start my program (project) in the delphi environment, it will
only stop
> at the first breakpoint it encounters. Pressing F7 or F8 (step into or
step over)
> gives the same result as F9 (run). So debugging gets irritating.

> If I load an other project (a demo one for instance) the de{*word*81} works
fine.

> Has anyone encountered this as well, and if you did, how did you solve
this problem?

> If anyone could help, I would be very pleased.

> Otto
> O.Berg...@lr.tudelft.nl

Re:Debug doesn't want to stop at a break point


Quote
In article <5o8njc$on...@news.tudelft.nl> O.Berg...@lr.tudelft.nl (Otto Bergsma) writes:
>Path: iccu9.ipswich.gil.com.au!news.bri.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!news.netspace.net.au!news.mira.net.au!inquo!nntp.uio.no!newsfeeds.sol.net!europa.clark.net!howland.erols.net!surfnet.nl!tudelft.n
>!news
>From: O.Berg...@lr.tudelft.nl (Otto Bergsma)
>Newsgroups: comp.lang.pascal.delphi.misc
>Subject: Debug doesn't want to stop at a break point
>Date: 18 Jun 1997 13:25:00 GMT
>Organization: Faculty of Aerospace Engineering
>Lines: 16
>Message-ID: <5o8njc$on...@news.tudelft.nl>
>NNTP-Posting-Host: dutlbca.lr.tudelft.nl
>X-Newsreader: WinVN 0.90.5

I have a similar problem in Delphi 1.  Delphi in fact tells me that I have a
breakpoint on a line that contains no code and do I want Delphi to remove it !

I found that if I remove all the forms from the project (over 200 of them )
then it works fine.

Have not tried Delphi 2 yet.

Phil

Quote
>I am working with delphi 2.0 for sometime now, and for no reason
>(as it appears to me) the de{*word*81} does not seem to function properly anymore!
>Whenever I start my program (project) in the delphi environment, it will only stop
>at the first breakpoint it encounters. Pressing F7 or F8 (step into or step over)
>gives the same result as F9 (run). So debugging gets irritating.
>If I load an other project (a demo one for instance) the de{*word*81} works fine.
>Has anyone encountered this as well, and if you did, how did you solve this problem?
>If anyone could help, I would be very pleased.
>Otto
>O.Berg...@lr.tudelft.nl

Re:Debug doesn't want to stop at a break point


Quote
On Mon, 23 Jun 1997 19:15:35, a...@gil.com.au (Phil Wright) wrote:
>I have a similar problem in Delphi 1.  Delphi in fact tells me that I have a
>breakpoint on a line that contains no code and do I want Delphi to remove it !

Have you tried a rebuild all?  I've had several problems where it
turned out that Delphi did not know when a rebuild of a form was
necessary.

Also, I had the same problem after using an editor that used Unix
End-Of-Line characters.  All lines seperated by Unix EOL characters
were determined to be on one line.

Chuck Gadd
Director of Software Development, {*word*104} FX Communications.
e-mail:cgadd-NOS...@{*word*104}-fx.com  http://www.{*word*104}-fx.com
Remove the -NOSPAM from my email address to send me e-mail.
*** I boycott businesses that send me unsolicited email adverti{*word*224}ts ***

Re:Debug doesn't want to stop at a break point


There are also other lines that the Delpih Optimizer reomoves.
For example, the following would probably be removed at
run-time:

i:=1;

this is because the value of I is known at compile-time, and this
assignment
can be more efficiently implemented :)

-Mike

Quote
Steve Bygrave wrote:
> Is it possible that you are setting the breakpoint on a {COMMENT} line
> or
> something similar?  The compiler probably removes these lines before
> it
> executes your program.  Your breakpoint might be getting removed along
> with
> the comment line.

> Just a thought, hope it helps.

> -------------
> Steve Bygrave
> Nova Scotia, Canada.
> sbygr...@fox.nstn.ca

> Otto Bergsma <O.Berg...@lr.tudelft.nl> wrote in article
> <5o8njc$on...@news.tudelft.nl>...
> > I am working with delphi 2.0 for sometime now, and for no reason
> > (as it appears to me) the de{*word*81} does not seem to function
> properly
> anymore!

> > Whenever I start my program (project) in the delphi environment, it
> will
> only stop
> > at the first breakpoint it encounters. Pressing F7 or F8 (step into
> or
> step over)
> > gives the same result as F9 (run). So debugging gets irritating.

> > If I load an other project (a demo one for instance) the de{*word*81}
> works
> fine.

> > Has anyone encountered this as well, and if you did, how did you
> solve
> this problem?

> > If anyone could help, I would be very pleased.

> > Otto
> > O.Berg...@lr.tudelft.nl

Re:Debug doesn't want to stop at a break point


Quote
In article <33afa253.255681...@news.csd.net> cgadd-NOS...@{*word*104}-fx.com (Chuck Gadd) writes:
>Path: iccu9.ipswich.gil.com.au!news.bri.connect.com.au!news.syd.connect.com.au!news.mel.connect.com.au!harbinger.cc.monash.edu.au!msunews!news.mtu.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!news-peer.sprintlink.net!news-east.sprintlink.
>et!news-dc-26.sprintlink.net!news-fw-12.sprintlink.net!news.sprintlink.net!Sprint!news.csd.net!usenet
>From: cgadd-NOS...@{*word*104}-fx.com (Chuck Gadd)
>Newsgroups: comp.lang.pascal.delphi.misc
>Subject: Re: Debug doesn't want to stop at a break point
>Date: Mon, 23 Jun 1997 16:24:07 GMT
>Organization: {*word*104}-FX, Inc
>Lines: 20
>Message-ID: <33afa253.255681...@news.csd.net>
>References: <5o8njc$on...@news.tudelft.nl> <acr.69.00134...@gil.com.au>
>Reply-To: cgadd-NOS...@{*word*104}-fx.com
>NNTP-Posting-Host: ppp22.csd.net
>Mime-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Forte Agent 1.0/32.354
>On Mon, 23 Jun 1997 19:15:35, a...@gil.com.au (Phil Wright) wrote:
>>I have a similar problem in Delphi 1.  Delphi in fact tells me that I have a
>>breakpoint on a line that contains no code and do I want Delphi to remove it !

>Have you tried a rebuild all?  I've had several problems where it
>turned out that Delphi did not know when a rebuild of a form was
>necessary.

Yes.

I am now in the situation that the breakpoints will not work at all.  Also
when I press F9 it will not recompile automatically.

To test an app I have to compile first and then run the app.  Any errors I
have made will stop the programme but I can't use the de{*word*81}.

If I start a new app then everyting works fine again.  My app is just too
large for the IDE I think.

Phil

Re:Debug doesn't want to stop at a break point


Quote
a...@gil.com.au (Phil Wright) wrote:
>>>I have a similar problem in Delphi 1.  Delphi in fact tells me that I have a
>>>breakpoint on a line that contains no code and do I want Delphi to remove it !
>If I start a new app then everyting works fine again.  My app is just too
>large for the IDE I think.

I never saw your original post or any of the other replies, but have
you gone into Options/Project and verified (on the Compiler tab) that
Debug Information, Local Symbols, and Symbol Info are checked?  If
these are cleared, it can't let you use breakpoints because it doesn't
have the information it needs to associate an address in the program
with a line of the source.

Other Threads