RubyMine
 
Get RubyMine
You are viewing the documentation for an earlier version of RubyMine.

Run/debug configurations

Last modified: 09 August 2022

Configure: Run | Edit Configurations

RubyMine uses run/debug configurations to run, debug, deploy, and test your code. Each configuration is a named set of startup properties that define what to execute and what parameters and environment should be used.

You can customize configuration parameters according to your requirements, for example:

  • For the Rails run/debug configuration, you can specify a server type (such as Puma or Passenger), IP address and port, environment (development by default), and so on.

  • For the Ruby run/debug configuration, you can define command-line arguments, pass the required environment variables, and so on.

  • For RSpec, you can choose a folder containing the required tests and provide custom runner options.

Let's see on how to work with run/debug configurations in general - from creating a temporary configuration to sharing configurations through VCS.

There are two types of run/debug configurations:

  • Temporary — created every time you run a Ruby script, Rails server, test, or another command without configuration.

  • Permanent — created explicitly from a template or by saving a temporary configuration. Permanent configurations remain as part of your project until you remove them.

So whenever you run/debug or test your code, RubyMine either uses an existing permanent run/debug configuration or creates a new temporary one.

Permanent configurations have opaque icons while the icons of temporary configurations are semi-transparent.

The maximum number of temporary configurations is 5. The older ones are automatically deleted when new ones are added. If necessary, you can increase this limit in Settings/Preferences | Advanced Settings | IDE | Temporary configurations limit.