PyCharm 2016.1 Help

Attaching to Local Process

PyCharm makes it possible to attach to a Python process, while running a Python script launched either outside of PyCharm, or inside PyCharm, but NOT in the debug mode.

To attach to a Python process, follow these steps

  1. Make sure that the desired script is running.
  2. On the main menu, choose Tools | Attach to Process. PyCharm shows the list of running Python processes on a system.
  3. From the list of Python processes, select the one to connect to, and click OK.

PyCharm starts the debugger session in the Debug tool window. You can now debug your script (set breakpoints, step through the script, pause and resume the process, evaluate expressions etc.)

See Also

Last modified: 20 April 2016