How to run all projects in a project group?

I have a project group in which there are two projects that use the same source folder but do different things. What seems strange to me is the use of the β€œproject team”, but I don’t want this subjective question to ask you directly:

How to run all the projects in the project group - is there a shortcut?

Thank you in advance!

+7
delphi delphi-2009
source share
6 answers

Actually, all of you are mistaken. You can debug several programs at the same time.

I do not know when it was first implemented, most likely when project groups were added to Delphi, but I use it with "forewer", and I am sure that at least Delphi 2005 was able to do it.

In short:

  • Create a project group with two programs.
  • Create them all! You cannot use the compiler after starting the debugger.
  • Activate the first program (double-click its name in the Program Manager) and press F9 (run).
  • Activate the second program in the Program Manager (you cannot use the drop-down list next to the "Run" toolbar button for this, since it will be 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 only work with the file.

This approach works with any number of programs. (There may be some severely limited restrictions, but I never came across them.)

+17
source share

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

So, I think the answer is this: you cannot.

Well, I think if you do not count DLLs that are launched in the same process, but are separate projects. (seeing another post), but I have never tried this.

+2
source share

You can only debug one project at a time, but you can run as many as you want from the IDE without debugging.

Shift + Ctrl + F9

Refresh . I am correcting myself. You can debug multiple projects at the same time. Great for debugging client and server at the same time.

+2
source share

To start all projects at once, add the new batch file to your project group. Make a batch file to run each program, and when you want to run them later, just select the batch file in the project group and run it. This is not the same as debugging all projects, just starting them. This is just a way to automate the procedure described in Bruce's Answer .

+2
source share

A project team is a tool for creating multiple projects. You can choose everything to build everything, to create them all.

You can run several from the debugger if it is a program, and the rest are DLLs that are used by the program.

Several programs cannot be started / debugged simultaneously.

Although you can use the program as a DLL, I'm not sure if the IDE can handle this. In this case, you can use the main procedure, which is called only the main program. Then you should export this main proc. Create an additional exe project that calls all from different threads. I have not tested this. And this is a hack, but it probably can work.

But why do you want to run / debug multiple applications at the same time?

+1
source share

As a note: check all dependent projects (right-click on the project β†’ Dependencies) so that they are automatically created before debugging.

0
source share

All Articles