If my memory serves me corectly Delphi 5 needs to have its debugger to be set as default system debuger. For this to be set certain registry entry changes needs to be done.
This registry entries are in section of registry which is additionaly protected. What this means is that you probably would have to run the Delphi instaler with administrative privilegies.
Also try starting Delphi with administrative rights.