JetBrains Fleet 1.36 Help

Run and debug C# code

To run and debug code, JetBrains Fleet uses run configurations. You can have a single configuration for your application, or you can configure multiple configurations to launch different parts of your code with different parameters.

For .NET projects of executable types (such as console application or WPF application) run settings are discovered automatically. If you want to run or debug such projects with default parameters, you don't have to create a run configuration explicitly. However, if you want to customize startup parameters, you need to create a run configuration.

JetBrains Fleet also automatically creates run configurations based on launchSettings.json profiles with "commandName": "Project".

Run and debug existing configurations


  1. Press ⌘ R or click Run on the toolbar.

  2. In the dialog that opens, pick a run configuration and press or click Run next to it.

    The illustration below shows automatically discovered run configuration for a console application project.

    JetBrains Fleet: Run .NET console application
  3. You can review the output in the console that opens.

    JetBrains Fleet: Run .NET console application. Output

Start debugging

  1. Before debugging, toggle some breakpoints in places that you want to check — place the caret to a statement of interest and press ⌘ 9 or click the line number next to it.

  2. Press ⌘ R or click Run on the toolbar.

  3. In the dialog that opens, pick a run configuration and press ⌥ ⏎ or click Debug next to it.

  4. As soon as the program hits the breakpoint, JetBrains Fleet will open the Debug window where you can control the debugging session.

JetBrains Fleet: Debug .NET console application

Create and customize run configurations

You can create run configurations from scratch and specify their parameters manually, or you can copy parameters from an existing automatically discovered configuration and customize them as required.

Adjust a copy of an existing configuration

  1. Press ⌘ R or click Run on the toolbar.

  2. In the Run & Debug dialog that opens, click the ellipsis ... next to an automatically discovered configuration and select Copy Configuration. This will copy configuration settings to the clipboard.

    JetBrains Fleet: Copy run configuration.
  3. Open the Run & Debug dialog again and click Edit Configurations... there.

    This create if not existing, and open the run.json file where JetBrains Fleet stores all run configurations for the current workspace.

  4. In the run.json file, place the caret at inside the body of the root configurations element and press ⌘ V to paste the configuration parameters you've just copied:

    { "configurations": [ { "name": "Run Catalog", "type": "dotnet", "projectPath": "Catalog\\Catalog.csproj", "exePath": "Catalog\\bin\\Debug\\net6.0\\Catalog.exe", "args": [] } ] }
  5. Now you can edit the configuration, for example, change its name to Run with DE argument and add a DE startup argument.

    { "configurations": [ { "name": "Run with DE argument", "type": "dotnet", "projectPath": "Catalog\\Catalog.csproj", "exePath": "Catalog\\bin\\Debug\\net6.0\\Catalog.exe", "args": ["DE"] } ] }
  6. The new run configuration becomes available in the Run & Debug dialog for running and debugging:

    JetBrains Fleet: Custom run configuration
Last modified: 11 February 2024