PyCharm 2019.2 Help

Starting the Debugger Session

Before debugging

  1. Set the breakpoints in the source code.

  2. If necessary, create or modify the corresponding Run/Debug configuration.

The debug session starts with the selected run/debug configuration. Note that several debug processes can be launched simultaneously.

For example, debugging session for a Python script will start with the default temporary run/debug configuration, unless you select a permanent one.

To start debugging a Python script

  1. Open the desired Python script in the editor, or select it in the Project tool window.

  2. From the context menu, choose Debug <script name>:

    py_debugScript.png

Note that after you've launched a debug session, the icons actions startDebugger svg icon that marks the Debug Tool Window toggles to Debugging is active to indicate that the debugging process is active.

Last modified: 6 November 2019