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:
-
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.
-
For any project, you can create run/debug configurations manually from the predefined templates.
-
If necessary, you can customize templates for creating run configurations.
-
To launch multiple run/debug configurations simultaneously, use compound configurations.
-
Create folders to organize your configurations.
-
Share your configurations with team members through VCS.