PyCharm 2017.1 Help

Debug Tool Window. Console

This tab is marked with /help/img/idea/2017.1/show-console.png and shows the output and error stream messages.

On this page:

Console Toolbar

ItemTooltip and shortcutDescription
/help/img/idea/2017.1/arrowUp.png /help/img/idea/2017.1/arrowDown.png Up/down the Stack Trace
Ctrl+Alt+Up Ctrl+Alt+Down
Click this button to navigate up or down in the stack trace and have the cursor jump to the corresponding location in the source code.
/help/img/idea/2017.1/icon_softWrap.png Use Soft WrapsClick this button to toggle the soft wrap mode of the output.
scrollToEnd.png Scroll to the endClick this button to navigate to the bottom of the stack trace and have the cursor jump to the corresponding location in the source code.
/help/img/idea/2017.1/print.png PrintClick this button to send the console text to the default printer.
/help/img/idea/2017.1/clear_all.png Clear AllClick this button to remove all text from the console. This function is also available on the context menu of the console.
/help/img/idea/2017.1/icon_showCommandLine.pngShow Python promptIf this button is pressed, you can enter commands in the console and view output.
Note that in the debug console, code completion is available:

It's also possible to scroll through the history of commands with the up and down arrow keys.

/help/img/idea/2017.1/consoleHistory.pngBrowse history
Press this button to show the Debug Console History dialog box, where one can view the console entries and navigate through them, using the arrow keys.

Click OK to close the dialog box.

Context Menu Options

Compare with ClipboardOpens the Clipboard vs Editor dialog box that allows you to view the differences between the selection from the editor and the current clipboard content. This dialog is a regular comparing tool that enables you to copy the line at caret to the clipboard, find text, navigate between differences and manage white spaces.
Copy URLChoose this command to copy the current URL to the system clipboard. This command only shows on a URL, if it is included in an application's output.
Create GistChoose this command to open the Create Gist dialog box.
Clear AllClears the output window.

Keyboard Shortcuts

The Ctrl+D key combination allows you to send EOF (end of file), i.e. to signal that no more data can be read from a data source.

See Also

Last modified: 26 July 2017