Attach to Process…
PyCharm also has the ability to attach its debugger to separately running processes. This can be very helpful when trying to debug a command-line application that require changes in parameters or when trying to debug games. The PyCharm debugger simply looks for running the Python processes:
