PyCharm 2023.1 Help

Using Debug Console

The Debug Console enables you to view the output and error messages. You can optionally make command prompt available.

Opening the Debug Console

When you start the debugging session, PyCharm launches the debug console.

By clicking Python icons com jetbrains python python console, you can make the console interactive. It will show prompt, where you can type commands, execute them, and review results:

changing variables during debugging in the Python console

Actions available in the Debug Console

In the console, you can:

  • Type commands and press Enter to execute them. Results are displayed in the same console.

  • Use basic code completion Control+Space and tab completion.

  • Use Up and Down arrow keys to scroll through the history of commands, and execute the required ones.

  • Load source code from the editor into console.

  • Use the context menu to copy the contents of the console to the clipboard, compare it with the clipboard, or clear the console.

  • Use the toolbar buttons to control your session in the console.

Last modified: 15 November 2022