How do I run all projects in a project group?

delphi, delphi-2009

Solution

Actually, all of you are wrong. You can debug multiple programs at the same time.

I don't know when this was first implemented, most probably when the project groups were added to the Delphi, but I'm using this since "forewer" and I'm sure that at least Delphi 2005 was capable of doing it.

In short:

- Create a project group with two programs.

- Build them all! You won't be able to use the compiler after you start the debugger.

- Activate the first program (double-click on its name in the Program Manager) and press F9 (run).

- Activate the second program in the Program Manager (you cannot use the drop-down next to the "Run" toolbar button for that as it will become disabled in the previous step) and press F9.

Voila! You have two programs running under the debugger. You can set breakpoints in any of them and they will work just file.

This approach works with any number of programs. (There may be some hardcoded limitations but I've never run into them.)

Problem

I have a project group containing two projects that share one source folder,but do different things.What I find strange is the use of 'project group',but I don't want to turn this a subjective question,thereby I directly ask you: How do I run all the projects in a project group - is there a short way? Thank you in advance!

Original source