RubyMine 2019.3 Help

Run/debug configurations

RubyMine provides the capability to run and debug Ruby and Rails applications, run tests, and deploy your code in a universal way - by using run/debug configurations. Run/debug configurations provide the default set of startup parameters that allow you to run the desired command quickly. You can customize these 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:

  1. When you run a Ruby script, Rails server, test, or other commands, RubyMine automatically creates a corresponding temporary configuration. You can edit and save this configuration.

  2. For any project, you can create run/debug configurations manually from the predefined templates.

  3. If necessary, you can customize templates for creating run configurations.

  4. To launch multiple run/debug configurations simultaneously, use compound configurations.

  5. Create folders to organize your configurations.

  6. Share your configurations with team members through VCS.

Last modified: 30 January 2020