Interactive debugger console
Available only in PyCharm Professional: download to try or compare editions
Required plugins:
Javascript and TypeScript
, JavaScript Debugger
- The plugins are available only in PyCharm Professional, where they are enabled by default.
note
The interactive Console pane is shown only during a debugging session. It is not available when you are running an application or previewing web pages.
Debugging of JavaScript code is only supported in Google Chrome and in other Chromium-based browsers.
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.

Start typing a statement at
>
in the input field. As you type, PyCharm suggests variants for completion.Select the relevant statement and press Enter. PyCharm shows its value in the console.
PyCharm 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.
At each line with output of
console.*
, PyCharm 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.GifThe Console also shows stack traces. Click the link next to a reported problem to jump to the line of code where this problem occurred.
Gif
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
and select the severities to filter out.
The log messages grouped using
console.group()
andconsole.groupEnd()
are displayed as a tree. To show the output collapsed by default, useconsole.groupCollapsed()
.
Use CSS and the
%c
marker to apply styles to log messages.See Styling console output with CSS for details.
Thanks for your feedback!