JetBrains Rider 2024.3 Help

Run/debug multiple targets

JetBrains Rider 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 for each of the tasks or processes that need to be launched. Once all necessary configurations are in place, you have the following options:

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

Multi-Launch configuration

Multi-Launch configuration is the easiest way to launch multiple projects in a controlled way. It can include several run configurations and auxiliary tasks, such as building and publishing the solution.

JetBrains Rider: Running multiple projects with Multi-launch configuration

Create Multi-launch configuration

  1. Select the desired projects in the solution explorer.

  2. Right-click the selection and choose Run Multiple Projects.

  3. JetBrains Rider will create run configurations for each project as well as a new Multi-Launch configuration. will be created and displayed in the Run/Debug Configurations dialog.

  4. By default, when you start a Multi-Launch configuration, the start signals are sent to all configurations and tasks immediately.

    If you need configurations and tasks to start in a specific order, first rearrange the configurations using the buttons on the left, then use the selectors in the When to launch column to change launch conditions of configurations and tasks.

  5. Often when you need to launch multiple projects, you may want to debug only some of them, and others are started for auxiliary functions. To avoid attaching the debugger to all projects, select checkboxes in the Do not debug column next to the projects that should not be debugged.

  6. Click OK to save the configuration.

The newly created Multi-Launch configuration will be displayed as the default configuration in the toolbar selector, and you will be able to run or debug it when necessary.

JetBrains Rider: Multi-Launch configutaion in the toolbar widget

Parallel launch with a compound run/debug configuration

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

Create a compound run/debug configuration

  1. Create a run/debug configuration for each app and process that should be launched in your session.

  2. Go to Run | Edit Configurations. Alternatively, press Alt+Shift+F10, then 0.

  3. In the Run/Debug Configurations dialog, click the Add button or press Alt+Insert, 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.

  6. To include a new run/debug configuration into the compound configuration , click Add the Add button 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 the Before Launch task

You can use run/debug configuration's Before Launch tasks for different tasks, including launching other run/debug configurations.

Configure 'Before Launch' tasks

  1. Create a run/debug configuration for each app and process that should be launched in your session.

  2. Go to Run | Edit Configurations. Alternatively, press Alt+Shift+F10, then 0.

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

  4. Click Modify options and select Add before launch task.

  5. Click Add Add task, then select Run Another Configuration, and choose the desired configuration.

  6. Make sure that all necessary configurations are added. Use the Up Alt+Up and Down Alt+Down to arrange the launch order (configurations at the top will be launched first).

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

Last modified: 11 November 2024