Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run all projects in a project group?

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!

like image 925
Ivan Prodanov Avatar asked Jan 28 '10 12:01

Ivan Prodanov


3 Answers

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.)

like image 141
gabr Avatar answered Sep 22 '22 05:09

gabr


The debugger can debug only one application (actually: Process) at the time, and if you run from the IDE it is in the debugger.

So I think the answer is : you can't.

Well, I guess unless you count dlls that are launched in the same process, but are individual projects. (seeing the other post), but I never tried that.

like image 40
Marco van de Voort Avatar answered Sep 20 '22 05:09

Marco van de Voort


To run all the projects at once, add a new batch file to your project group. Make the batch file run each program, and when you want to run them all later, simply choose the batch file in the project group and run it. This isn't the same as debugging all the projects, just running them. It's simply a way to automate the procedure given in Bruce's answer.

like image 21
Rob Kennedy Avatar answered Sep 24 '22 05:09

Rob Kennedy