Search code examples
delphidebuggingdelphi-7

How to debug Delphi project?


I'm a .NET developer, but I have got a quest - I must find errors in a Delphi project.

After opening a project (Borland Delphi 7) and trying to debug it ('Run' menu), I've noticed all debugging options are inactive (gray).

How can I make it usable?


Solution

  • I'm not sure why the pause button doesn't work, but I have seen Delphi 7 get "confused" and refuse to stop on legitimate breakpoints before.

    • Make a backup of everything, just in case you don't have the source for all of the DCUs.
    • Delete the project's DCUs.
    • Make sure you're including debug information in the project's options.
    • Do a full build (not just a recompile).

    I hope this helps.