PyCharm 2017.1 Help

Run Tool Window

Run | Run
View | Tool Windows | Run

The Run tool window displays output generated by your application. If you are running multiple applications, each one is displayed in a tab named after the run/debug configuration applied.

The appearance of each tab depends on the type of the application being run and can include additional toolboxes and panes.

The main toolbar of the Run tool window lets you rerun, stop, pause, or terminate an application. The following table contains descriptions of the buttons that are common for most applications.

Run Toolbar

ItemTooltip and shortcutDescription
Click this button to stop the current application and run it again.
When an application is stopped (/help/img/idea/2017.1/stop.gif), this button toggles to /help/img/idea/2017.1/run.png.
Click this button to rerun the current application.
This button appears, when an application is stopped (/help/img/idea/2017.1/stop.gif). When an application is running, this button toggles to /help/img/idea/2017.1/rerunConsole.png.
/help/img/idea/2017.1/pause.pngPause OutputClick this button to have the process output paused.

Note that the button is not available for Run/Debug Configuration: Node JS, Run/Debug Configuration: Node JS Remote Debug, and Run/Debug Configuration: NodeUnit.

Click this button to terminate the current process externally by means of the standard shutdown script.

Clicking the button once invokes soft kill allowing the application to catch the SIGINT event and perform graceful termination (on Windows, the Ctrl+C event is emulated). After the button is clicked once, it is replaced with /help/img/idea/2017.1/icon_run_tool_window_kill.png indicating that subsequent click will lead to force termination of the application, e.g. on Unix SIGKILL is sent.

/help/img/idea/2017.1/debug_layout.pngRestore LayoutClick this button to to have the changes to the current layout abandoned and return to the default state.
pin2.png Pin Use to pin or unpin the tab. If a tab is pinned, the results for the next command are shown on a new tab.
close.png Close
Click this button to close the selected tab of the Run tool window and terminate the current process.
help Help
Use this icon or shortcut to open the corresponding help page.

Context menu


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.

Karma Server tab

The tab is shown only when you run JavaScript unit tests using the Karma test runner. Use the tab to view and analyze information from the server. For details, see Testing JavaScript with Karma.

See Also

Last modified: 26 July 2017