Version 1 of what you say...?
Lazarus is a fantastic, free visual development environment that has a good code editor, a drag-and-drop interface designer and an integrated debugger. It runs on Windows, OS X and Linux. You can design and code on one platform then compile and debug on another. I’ve been using it daily for the past few weeks and it is remarkably good. It supports Object Pascal (via the Free Pascal compiler) and is closely compatible with Embarcadero’s (formerly Borland’s) Delphi. I was the Delphi columnist for PC Plus magazine for over ten years and I love Object Pascal. In the good old days, there used to be free versions of Delphi available - but not any more. Lazarus plus Free Pascal are a great free alternative. Give them a try.