Skip to content

Instantly share code, notes, and snippets.

Hannes Schmidt hannes-ucsc

Block or report user

Report or block hannes-ucsc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hannes-ucsc
hannes-ucsc / debug_client.py
Created Aug 6, 2015
PyCharm remote debugger client code
View debug_client.py
# 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
You can’t perform that action at this time.