# Interactive debugger console

> **TL;DR**
> Required plugins:
>
>
>
> `JavaScript and TypeScript` -    the plugin is bundled with IntelliJ IDEA and enabled by default.
>
>
>
> `JavaScript Debugger` -    install the plugin on the Settings | Plugins page, tab Marketplace.     The plugin is available only in IntelliJ IDEA with the Ultimate subscription.

> **Note:**
> * The interactive Console pane is shown only when you are [debugging an application](debugging-javascript-in-chrome.html) or [debugging a test](unit-testing-javascript.html#running-and-debugging-tests). It is not available when you are [running an application](running-applications.html) or [previewing web pages](editing-html-files.html#ws_html_preview_output).
>
> * Debugging of JavaScript code is only supported in [Google Chrome](http://www.google.com/chrome/) and in other [Chromium-based browsers](https://www.chromium.org/).

The interactive Console pane shows you stack traces and everything that was logged in your code (for example, using `console.*`).

The Console pane is also a read-eval-print loop ( REPL) so you can run JavaScript code snippets in it and interact with the page that you are currently debugging.

[Video](https://resources.jetbrains.com.cn/help/img/idea/2026.2/js_interactive_debugger_console_object_shown.mp4)

Procedure: Run JavaScript in the Console

1. Start typing a statement at `>` in the input field. As you type, IntelliJ IDEA suggests variants for completion.

2. Select the relevant statement 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` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)). IntelliJ IDEA shows its value in the console.

IntelliJ IDEA shows previews for objects, so you do not need to expand them. If you still expand an object, you get an overview of just its own properties, the `__proto__` contents are hidden by default.

Procedure: Navigate to source code

* At each line with output of `console.*`, IntelliJ IDEA shows the name of the file and the line where it was called. Click this link to jump to the call in the source code.

![JavaScript interactive debugger console: navigation to source code](https://resources.jetbrains.com.cn/help/img/idea/2026.2/js_interactive_debugger_console_navigate_to_source.animated.gif)

* The Console also shows stack traces. Click the link next to a reported problem  to jump to the line of code where this problem occurred.

![JavaScript interactive debugger console: navigation to errors](https://resources.jetbrains.com.cn/help/img/idea/2026.2/js_interactive_debugger_console_navigate_from_stack_trace.animated.gif)

Procedure: Filter out messages

The Console tab shows objects in a tree view, with stack traces collapsed by default. Warnings `console.warn()`, errors `console.error()`, and info `console.info()` messages have different icons and background colors to make them easier to notice.

* To hide log messages of specific types, click ![the Filter button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.filter.svg) and select the severities to filter out.

![Node.js interactive debugger console: filtering out messages by type](https://resources.jetbrains.com.cn/help/img/idea/2026.2/js_interactive_debugger_console_filter.png)

Procedure: Group messages

* The log messages grouped using `console.group()` and `console.groupEnd()` are displayed as a tree. To show the output collapsed by default, use `console.groupCollapsed()`.

![Node.js interactive debugger console: log messages grouped](https://resources.jetbrains.com.cn/help/img/idea/2026.2/js_interactive_debugger_console_group_messages.png)

Procedure: Apply CSS styles

* Use CSS and the `%c` marker to apply styles to log messages.

![JavaScript interactive debugger console: applying CSS style to log messages](https://resources.jetbrains.com.cn/help/img/idea/2026.2/js_interactive_console_css.png)

For more information, refer to [Styling console output with CSS](https://developers.google.com/web/tools/chrome-devtools/console/console-write#styling_console_output_with_css).

