I cannot disable a (ghost) breakpoint
Asked Answered
A

5

11

I have an IDE break point (delphi-xe) that keeps reappearing every time I compile and run the program. How do I get rid of it. Where does Delphi keep the information about breakpoints?

Updates:
1. The break point is not listed in 'Breakpoints' panel.
2. I have disabled the breakpoint (it is not gray) using right click but the program still stops on that line.
3. I have deleted the line and the breakpoint moved above.


Update
It happens when you edit files outside the IDE. I do this a lot in BeyondCompare.

Arva answered 23/7, 2011 at 15:59 Comment(5)
Is it really a Delphi breakpoint or an int 3; in some 3rd party code that might have left some debug code in place?Outland
Hi Lars. It appears as a red dot on the right side of the editor. The PAS file in which it appears is mine (created by me).Arva
Welcome to the world of ghost and mysteriously moving as well as disappearing and re-appearing breakpoints. I'd check if the unit has any conditional defines. It seems to mess with the editor's ability to keep track of breakpoints. At least, since D2009 I haven't been able to set breakpoints and edit a unit without something going awry. It seems worse when conditional defines are in the picture, but I have yet to track it down sufficiently to file a QC report.Pent
Are you sure you don't have two versions of that unit? Ie one which has the preakpoint and is actually used by the project and other which is open in the editor?Trepidation
@Ain. The path shown in the top of the editor is the same. Let me know if there is some other test I can do to detect that.Arva
B
12

This has been a bug in Delphi since at least Delphi 7.

Workaround: Delete all breakpoints or disable breakpoint from breakpoint window.

Workaround 2: Delete .dsk files and .local files.

Beastly answered 23/7, 2011 at 22:30 Comment(1)
God! That old? I am happy that I never stepped into it (at least until now).Arva
H
2

I had this problem before and I found out that a file with the same filename was being referenced by the IDE that had break points. So do a search for your file and make sure that another file with the same name is not being referenced also.

Homeomorphism answered 24/7, 2011 at 3:30 Comment(2)
The path shown in the top of the editor is the same (when I click the red dot to disable it and when the breakpoint reappears). Let me know if there is some other test I can do to detect that.Arva
1) do you have multiple projects in the project manager that have files with the same name? 2) there is a annoying bug in the IDE where it can reference the wrong file during debugging if you #1 3) search your project folder(s) and make sure you do not have any other files with the same name that the IDE maybe referencing during debugging. It was because of #1 that I had the issue.Homeomorphism
N
2

AFAIR breakpoints are stored in the project's .dsk file. So deleting that file should solve the issue. (I seem to remember that .dsk are in .ini Format so you might even be able to find out what causes the behaviour.)

Neurilemma answered 24/7, 2011 at 6:30 Comment(2)
Found the reference to my file 3 (three) times in the DSK file. Deleted the entire section 'breakpoints'. Now it works. I am happy that Embarcadero put accent on productivity by offering this nice IDE. Because I spent may minutes every time I ran the program clicking the F9 button to jump over that damn ghost breakpoint - so probably I spent many hours on nothing. Thanks a lot Dummzeuch. YOU increased my productivity! Accepted.Arva
It is possible to do it inside the IDE too. :-) You need the breakpoint window though. (View ->Debug ->Breakpoints)Beastly
P
0

I know its an old thread, but I found a workaround which might help and which is not directly mentioned here. If its a INT 3-Problem take a look at Embarcadero Quality Central Report #: 2030 (http://qc.embarcadero.com/wc/qcmain.aspx?d=2030). This problem is still not solved in Rad studio XE !!

Prosaism answered 6/4, 2013 at 10:32 Comment(1)
Note that QualityCentral has now been shut down, so you can't access qc.embarcadero.com links anymore. If you need access to old QC data, look at QCScraper.Scut
P
0

Still hasn't been solved in Rad Studio 10.4 (using c++). I deleted the .dsk and .local files and it cleared the breakpoint.

Parry answered 4/2, 2021 at 19:17 Comment(1)
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From ReviewTitled

© 2022 - 2024 — McMap. All rights reserved.