# Debug console

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

When you run the [debugging session](starting-the-debugger-session.html) for a Ruby script, Rails application, or test, RubyMine displays output and error messages in a console. After a [breakpoint](using-breakpoints.html) is hit or the debugging session is [paused manually](starting-the-debugger-session.html#pause-resume-debugger), you can examine a state of the suspended program using an interactive IRB-like console. In this console, you can check variable values, examine complex objects, call methods, and so on.

![Debug in console](https://resources.jetbrains.com/help/img/idea/2026.3/rm_get_started_debug_console.animated.gif)

In this topic, we'll show you how to open and use this console.

> **Tip:**
> You can load and debug specific parts of code in the IRB console without running a program. Learn more at [Debug in IRB/Rails console](debugging-in-console.html).

## Open the interactive console

Depending on a type of the debugging session, RubyMine provides two ways to interact with your application in a console:

* If you debug a Ruby script or Rails application, open the Console tab in the Debug tool window and make sure that the ![Show Console Prompt](https://resources.jetbrains.com/help/img/idea/2026.3/app.debugger.console_dark.svg) button is pressed.

* If you debug tests, Rake tasks, the Console tab is busy with test output. In this case, switch to the Interactive Console tab to interact with your application.

## Use the interactive console

You can perform the following actions in a console:

Procedure:

* Execute commands

Type commands in the console and press `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (TextMate), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) to execute them.

* Multiline editing

Type a line of code and press `Shift+Enter` (Windows), `⇧ ⏎` (macOS), `⇧ ⏎` (IntelliJ IDEA Classic (macOS)), `⇧ ⏎` (macOS System Shortcuts), `Shift+Enter` (XWin), `Shift+Enter` (GNOME), `Shift+Enter` (KDE), `Shift+Enter` (Emacs), `Ctrl+Enter` (Sublime Text), `⌘ ⏎` (Sublime Text (macOS)), `Shift+Enter` (Visual Studio), `⇧ ⏎` (Visual Studio (macOS)), `Shift+Enter` (TextMate), `Shift+Enter` (NetBeans), `Shift+Enter` (Eclipse), `⇧ ⏎` (Eclipse (macOS)) to move the caret to the next line without executing a command.

* Complete names

Use [basic code completion](auto-completing-code.html) `Ctrl+Space` (Windows), `⌃ Space` (macOS), `⌃ Space` (IntelliJ IDEA Classic (macOS)), `⌃ Space` (macOS System Shortcuts), `Ctrl+Space` (XWin), `Ctrl+Space` (GNOME), `Ctrl+Space` (KDE), `Alt+/` (Emacs), `Ctrl+Space` (Sublime Text), `⌃ Space` (Sublime Text (macOS)), `Ctrl+Space` (Visual Studio), `⌃ Space` (Visual Studio (macOS)), `Ctrl+Space` (TextMate), `Ctrl+Space` (NetBeans), `Ctrl+Space` (Eclipse), `⌃ Space` (Eclipse (macOS)) to complete names of classes, methods, and so on.

* Navigate through history

Use the `Up` (Windows), `↑` (macOS), `↑` (IntelliJ IDEA Classic (macOS)), `↑` (macOS System Shortcuts), `Up` (XWin), `Up` (GNOME), `Up` (KDE), `Up` (Emacs), `Up` (Sublime Text), `↑` (Sublime Text (macOS)), `Up` (Visual Studio), `↑` (Visual Studio (macOS)), `Up` (TextMate), `Up` (NetBeans), `Up` (Eclipse), `↑` (Eclipse (macOS)) and `Down` (Windows), `↓` (macOS), `↓` (IntelliJ IDEA Classic (macOS)), `↓` (macOS System Shortcuts), `Down` (XWin), `Down` (GNOME), `Down` (KDE), `Down` (Emacs), `Down` (Sublime Text), `↓` (Sublime Text (macOS)), `Down` (Visual Studio), `↓` (Visual Studio (macOS)), `Down` (TextMate), `Down` (NetBeans), `Down` (Eclipse), `↓` (Eclipse (macOS)) arrow keys to scroll through the history of commands and execute the required ones.

* Navigate to source code

To [navigate](navigating-through-the-source-code.html#go_to_declaration) to the initial declaration of a symbol and symbol's type, place the caret at the desired symbol and press `Ctrl+B` (Windows), `⌘ B` (macOS), `⌘ B` (IntelliJ IDEA Classic (macOS)), `⌘ B` (macOS System Shortcuts), `Ctrl+B` (XWin), `Ctrl+B` (GNOME), `Ctrl+B` (KDE), `Ctrl+Alt+G` (Emacs), `F12` (Sublime Text), `F12` (Sublime Text (macOS)), `F12` (Visual Studio), `F12` (Visual Studio (macOS)), `Meta+B` (TextMate), `Ctrl+B` (NetBeans), `F3` (Eclipse), `F3` (Eclipse (macOS)).

* View quick documentation

To get [quick information](viewing-reference-information.html) for any symbol or method signature, place the caret at the desired symbol and press `Ctrl+Q` (Windows), `F1` (macOS), `⌃ J` (IntelliJ IDEA Classic (macOS)), `⌘ I` (macOS System Shortcuts), `Ctrl+Q` (XWin), `Ctrl+Q` (GNOME), `Ctrl+Q` (KDE), `Ctrl+Q` (Emacs), `Ctrl+Q` (Sublime Text), `Ctrl+Q` (Sublime Text (macOS)), `Ctrl+K, I` (Visual Studio), `⌘ K, I` (Visual Studio (macOS)), `Ctrl+Middle-Click` (TextMate), `Ctrl+Q` (NetBeans), `Alt+Middle-Click` (Eclipse), `⌥ Middle-Click` (Eclipse (macOS)).

## See also

### Procedures

[Start the debugger session](starting-the-debugger-session.html) [Examine suspended program](examining-suspended-program.html)

### Reference

