Re: breakpoints not working

From: Brad White (bwhite)
Date: 11/26/03


Date: Wed, 26 Nov 2003 15:20:03 -0600


"mark wheeler" <mark-wheeler@tiscali.co.uk> wrote in message
news:3fc4de69$1@newsgroups.borland.com...
>
> "Joanna Carter \(TeamB\)" <joannac@btinternetXX.com> wrote:
> >mark wheeler wrote:
> >
> >| I cant get breakpoints to work. I have a large app written in Delphi
> >| 5 Enterprise. The main form works fine, I can compile, set a
> >| breakpoint and the debugger stops at the breakpoint line. However,
> >| If I then open another form and try to add a breakpoint, it doesnt
> >| work, the breakpoint seems to be set (the line changes colour to red)
>
> Ive deleted all dcu files but still get the same problem. The weird thing
is, If I scroll about 3/4 of the way down the pas file, the blue dots
miraculously appear !
>
Mark,

Generally this is caused by having a file open in the IDE
that is a copy of the one in the project.

Look at the title bar of the editor when you have
the Main form open. It should just show the name
of the unit.
Now look at the title bar when you have the other
unit open. Does it show a path to the unit?
That means that you are looking at a copy that
is in a different directory than what the project is in.

Or, it could be there reverse. you could be looking
at the one in the current directory while the project
is including one from another directory.
This happens frequently when you try to copy a
project from on dir to another.

Close the offending file and open it from the project manager,
not from the menu. That way you can be sure that you
are looking at the same on Delphi is compiling.

-- 
HTH,
Brad White


Relevant Pages

  • step/trace not working
    ... I'm using Delphi 3.0. ... and Trace Into stopped working. ... breakpoint or the end of the program, sort of like I pressed the "run" ...
    (comp.lang.pascal.delphi.misc)
  • Re: remove break point
    ... program stop at this breakpoint, ... The breakpoints and other IDE Form settings etc are stored to some Delphi ... DOF and CFG Delphi project files ... DEL *.DSK ...
    (comp.lang.pascal.delphi.misc)
  • Re: D2006 debugging nightmare
    ... > Does anybody else finds D2006 to be extremely slow at debugging? ... > every time I place a breakpoint, Delphi seems to infinitly freeze, and ... > anyway, you can place a breakpoint and go drink a beer, If you are lucky ... Sounds to me like it could be a file access issue. ...
    (borland.public.delphi.non-technical)
  • Re: Help please. Delphi Newbie
    ... > I'm just a guy self-learning delphi. ... put a breakpoint on the if line, ... cursor over the appinifile variable name. ... cursor over the var, you can use Ctrl+F7, to ask for runtime details of ...
    (comp.lang.pascal.delphi.misc)
  • Re: S3 Resume breakpoint
    ... How soon after resuming from S3 can I access physical memory through a PCIe ... I set a breakpoint in pci!PciReadDeviceCapability, ... "Maxim S. Shatskih" wrote: ...
    (microsoft.public.development.device.drivers)