# Run/debug multiple targets

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

RubyMine provides several ways to run/debug multiple things  at once, for example,   a client-server app or a complex test, which requires launching several different processes or tasks.  The first step in any case would be to [create run configurations](run-debug-configuration.html#createExplicitly) for each of the tasks or processes that need to be launched. Once all necessary configurations are in place, you have the following options:

* [Launch multiple configurations in parallel](#compound-configs) using a compound run configuration

* [Launch multiple configurations in sequence](#before_launch) using the Before Launch tasks

When multiple configurations are launched at once, each will be available in a separate tab in the Run or Debug tool window.

## Parallel launch with a compound run/debug configuration

A Compound run configuration lets you launch several run/debug configurations simultaneously.

> **Note:**
> The exact order of launching configurations within a compound configuration is not guaranteed.

Procedure: Create a compound run/debug configuration

1. [Create a run/debug configuration](run-debug-configuration.html#createExplicitly) for each app and process that should be launched in your session.

2. Go to `Run | Edit Configurations`. Alternatively, press `Alt+Shift+F10` (Windows), `⌃ ⌥ R` (macOS), `⌥ ⇧ F10` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ R` (macOS System Shortcuts), `Alt+Shift+F10` (XWin), `Alt+Shift+F10` (GNOME), `Alt+Shift+F10` (KDE), `Alt+Shift+F10` (Emacs), `Alt+Shift+F10` (Sublime Text), `⌃ ⌥ R` (Sublime Text (macOS)), `Ctrl+Alt+Shift+R` (Visual Studio), `⌘ ⌥ ⇧ R` (Visual Studio (macOS)), `Meta+R` (TextMate), `Alt+Shift+F10` (NetBeans), `Alt+Shift+F10` (Eclipse), `⌃ ⌥ R` (Eclipse (macOS)), then `0` (Windows), `0` (macOS), `0` (IntelliJ IDEA Classic (macOS)), `0` (macOS System Shortcuts), `0` (XWin), `0` (GNOME), `0` (KDE), `0` (Emacs), `0` (Sublime Text), `0` (Sublime Text (macOS)), `0` (Visual Studio), `0` (Visual Studio (macOS)), `0` (TextMate), `0` (NetBeans), `0` (Eclipse), `0` (Eclipse (macOS)).

3. In the Run/Debug Configurations dialog, click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) or press `Alt+Insert` (Windows), `⌘ N` (macOS), `⌃ N` (IntelliJ IDEA Classic (macOS)), `⌘ N` (macOS System Shortcuts), `Alt+Insert` (XWin), `Alt+Insert` (GNOME), `Alt+Insert` (KDE), `Alt+Insert` (Emacs), `Ctrl+N` (Sublime Text), `⌘ N` (Sublime Text (macOS)), `Ctrl+N` (Visual Studio), `⌘ N` (Visual Studio (macOS)), `Meta+Shift+N` (TextMate), `Alt+Insert` (NetBeans), `Alt+Insert` (Eclipse), `⌘ N` (Eclipse (macOS)), then select Compound.

4. Specify the run/debug configuration name in the Name field. This name will be used to identify the run/debug configuration in lists and menus.

5. Select Store as project file to make this run/debug configuration [available to other team members](null).

6. To include a new run/debug configuration into the compound configuration , click Add ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) and select the desired one from the list.

7. Apply the changes and close the dialog.

Once you set up the compound configuration, you can launch it with or without debugging.

## Sequential launch with a 'Before Launch' task

You can use run/debug configuration's Before Launch tasks [for different tasks](run-debug-configuration.html#before_launch) , including launching other run/debug configurations.

Procedure: Configure 'Before Launch' tasks

1. [Create a run/debug configuration](run-debug-configuration.html#createExplicitly) for each app and process that should be launched in your session.

2. Go to `Run | Edit Configurations`. Alternatively, press `Alt+Shift+F10` (Windows), `⌃ ⌥ R` (macOS), `⌥ ⇧ F10` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ R` (macOS System Shortcuts), `Alt+Shift+F10` (XWin), `Alt+Shift+F10` (GNOME), `Alt+Shift+F10` (KDE), `Alt+Shift+F10` (Emacs), `Alt+Shift+F10` (Sublime Text), `⌃ ⌥ R` (Sublime Text (macOS)), `Ctrl+Alt+Shift+R` (Visual Studio), `⌘ ⌥ ⇧ R` (Visual Studio (macOS)), `Meta+R` (TextMate), `Alt+Shift+F10` (NetBeans), `Alt+Shift+F10` (Eclipse), `⌃ ⌥ R` (Eclipse (macOS)), then `0` (Windows), `0` (macOS), `0` (IntelliJ IDEA Classic (macOS)), `0` (macOS System Shortcuts), `0` (XWin), `0` (GNOME), `0` (KDE), `0` (Emacs), `0` (Sublime Text), `0` (Sublime Text (macOS)), `0` (Visual Studio), `0` (Visual Studio (macOS)), `0` (TextMate), `0` (NetBeans), `0` (Eclipse), `0` (Eclipse (macOS)).

3. In the Run/Debug Configuration dialog, select the configuration that should be launched last.

4. Add more configurations in the Before launch area. For more details, refer to [this
chapter](run-debug-configuration.html#before_launch).

5. Make sure that all necessary configurations are added. Use the ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.moveUp.svg) Up `Alt+Up` (Windows), `⌥ ↑` (macOS), `⌥ ↑` (IntelliJ IDEA Classic (macOS)), `⌥ ↑` (macOS System Shortcuts), `Alt+Up` (XWin), `Alt+Up` (GNOME), `Alt+Up` (KDE), `Alt+Up` (Emacs), `Alt+Up` (Sublime Text), `⌥ ↑` (Sublime Text (macOS)), `Alt+Up` (Visual Studio), `⌥ ↑` (Visual Studio (macOS)), `Alt+Up` (TextMate), `Alt+Up` (NetBeans), `Alt+Up` (Eclipse), `⌥ ↑` (Eclipse (macOS)) and ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.moveDown.svg) Down `Alt+Down` (Windows), `⌥ ↓` (macOS), `⌥ ↓` (IntelliJ IDEA Classic (macOS)), `⌥ ↓` (macOS System Shortcuts), `Alt+Down` (XWin), `Alt+Down` (GNOME), `Alt+Down` (KDE), `Alt+Down` (Emacs), `Alt+Down` (Sublime Text), `⌥ ↓` (Sublime Text (macOS)), `Alt+Down` (Visual Studio), `⌥ ↓` (Visual Studio (macOS)), `Alt+Down` (TextMate), `Alt+Down` (NetBeans), `Alt+Down` (Eclipse), `⌥ ↓` (Eclipse (macOS)) to arrange the launch order (configurations at the top will be launched first).

6. Apply the changes and close the dialog.

Once you set up Before Launch tasks in the configuration that should be started last, you can launch it with or without debugging.

> **Tip:**
> Use compound to launch configurations together, multi-launch to control how they start, and Before Launch to execute prerequisites for an individual configuration.

