10

I downloaded a project made with Delphi 2009,which is also what I use,however there is one breakpoint that I just can't remove.If I try to remove it,its being executed again after the program is executed.

I met such things in other debuggers known as Hardware breakpoints,but this is not important.How do I remove the breakpoint?

EDIT: Article about those breakpoints,but It doesn't explain how to remove them.

3 Answers 3

20

If, for whatever reason, you can't turn these off in the IDE, as Rob says, this is persisted in the .dsk file.

You don't have to delete the file (and all of your other settings), though. you can just open it up in a text editor and find and edit the following section:

[Breakpoints]

8

View->Debug Windows->Breakpoints.

I'm very dissapointed at those articles.They explain how to add something,but not how to remove it.

3
  • 1
    "Those articles"? You've only cited one. It is about special non-breaking breakpoints, and it assumes you already know how to use ordinary breakpoints. Anyone who knows how to use ordinary breakpoints knows that the usual way of removing them is simply to click in the gutter, the same way they're created. Why would anyone expect it to be any different for special breakpoints? Jul 31, 2009 at 18:28
  • 1
    Anyway, if you can remove your breakpoint with the breakpoint debugger window even when you can't remove it by clicking in the gutter, then this is a good answer. +1. Jul 31, 2009 at 18:29
  • Yes,that's the problem I had.Couldn't remove it in the left tab as normal breakpoints. Jul 31, 2009 at 19:38
6

Breakpoints are stored in the dsk file for your project. Close your project, delete that file, and re-open the project. All breakpoints should be gone. (Other window-layout customizations will be gone, too. You'll have to restore those preferences manually.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.