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

Tutorial: Debug a script in Rails context

Last modified: 09 August 2022

The Rails runner allows you to run Ruby code in the Rails context non-interactively. In RubyMine, you can run and debug project or scratch Ruby scripts in the Rails context. In this tutorial, we'll show you how to debug a project Ruby script.

For example, your project contains the Ruby script you want to debug at the following path: lib/script.rb. Before debugging, you need to create the Ruby run/debug configuration for running this script using the Rails runner.