Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PyCharm remote debugger client code
# paste this into your code to be debugged
if False: # only needed for debugging programs that use the multiprocessing module
import multiprocessing
import sys as _sys
import pydevd
pydevd.settrace('', port=21212, suspend=True, stdoutToServer=True, stderrToServer=True, trace_only_current_thread=False)
# Start a remote debug session in PyCharm with the above port number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.