Create the 'Ruby remote debug' configurationĪt first, let's create and set up the Ruby remote debug configuration in RubyMine:
On both machines, we’ll use the jetbrains user’s home directories to store source code. In our tutorial, the remote computer has the sample-web-server name. Remote machine: The Ubuntu machine with enabled SSH access and the Ruby interpreter installed. Local machine: Mac with macOS, with RubyMine installed. In this tutorial, we'll use two machines to demonstrate debugging of the remote application: In this tutorial, we'll show you how to debug a sample Rails application using Ruby remote debug. In such cases, you can use the Ruby remote debug run/debug configuration. The specified ways may not suit for debugging some projects, for example, SketchUp. Run the application on the remote machine, add a remote Ruby interpreter, configure mappings, and attach to a running process. RubyMine offers you two ways to debug applications that are run on the remote machine:Īdd a remote Ruby interpreter, configure mappings between files of the local and remote project, and start a debugging session.