# Remote debugging

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/llms.txt).

RubyMine allows you to debug a Ruby application deployed on a remote machine using an SSH connection. You need to perform the following steps before running a remote debugging session:

Procedure:

1. On a local machine, open an application to be debugged in RubyMine.

2. On a remote machine, make sure that [SSH access](running-ssh-terminal.html#set_up_ssh) is enabled.

3. Synchronize remote project sources with local ones by using a [remote server configuration](deployment-configurations.html#configure-deployment-server).

4. Configure a [remote Ruby interpreter](configuring-language-interpreter.html#add_remote_ruby_interpreter) and specify mappings between files of local and remote sources.

Then, you can choose one of the following ways to debug a remote application:

Procedure:

* You can [start the debugging session](starting-the-debugger-session.html) for a required run configuration (Ruby, Rails, RSpec, etc.) as you do when debugging a local application.

* If you cannot launch the application from the IDE, run the desired process on a remote machine and [attach to this process](attaching-to-remote-process.html).

* If the ways above don't suit, try to debug your application using the [Ruby remote debug](remote-debugging-with-product.html) run configuration.

> **Tip:**
> If you want to debug an application with Docker or Docker Compose, configure a corresponding [remote Ruby interpreter](configuring-language-interpreter.html#add_remote_ruby_interpreter) and [start the debugging session](starting-the-debugger-session.html) directly from RubyMine as you do when debugging a local application. For [WSL](how-to-use-wsl-development-environment-in-product.html) and [Dev Container](open-project-with-dev-container-natively.html) projects, such interpreters are detected and configured automatically.

> **Note: Limitation**
> Simultaneous debugging of multiple Ruby processes is not supported when using Docker or Docker Compose remote interpreters.

