Last active
August 26, 2016 14:18
-
-
Save shroukkhan/f8571236af16570a73c4d5ef87486804 to your computer and use it in GitHub Desktop.
PyCharm Remote Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A Quick self reference for pycharm self debug: | |
1. copy pycharm-debug.egg from pycharm installation location ( C:\Program Files (x86)\JetBrains\PyCharm 2016.1.2\debug-eggs ) to | |
the the server | |
2. Add this to the main method file : | |
## because i suck at python | |
egg_path = '/usr/lib/pymodules/python2.6/valkyrie/pycharm-debug.egg' ## or where it was copied! | |
import sys | |
sys.path.append(egg_path) | |
import pydevd | |
pydevd.settrace('localhost', port=1987, stdoutToServer=True, stderrToServer=True) | |
3. remote port forward ( using secureCRT looks like this ) : http://i.imgur.com/eeKqVJg.png | |
4. setup pycharm remote debug : http://i.imgur.com/PsAMG6o.png | |
5. start debugger and listen for connection : http://i.imgur.com/G4Jin9O.png | |
6. on the server side, execute the python file : http://i.imgur.com/pRJHZMt.png | |
... done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment