Skip to content

Instantly share code, notes, and snippets.

@hannes-ucsc
Created August 6, 2015 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannes-ucsc/ccd48e7f1a7a3064de42 to your computer and use it in GitHub Desktop.
Save hannes-ucsc/ccd48e7f1a7a3064de42 to your computer and use it in GitHub Desktop.
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
multiprocessing.freeze_support()
import sys as _sys
_sys.path.append('/Applications/PyCharm.app/Contents/debug-eggs/pycharm-debug.egg')
import pydevd
pydevd.settrace('127.0.0.1', 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