Thursday, February 13, 2014

Remote python debugging using Eclipse

1. Untar file pysrc.tar  into directory p2t

2. Start Debugger Server in Eclipse



3. Insert following code into python source code and execute.

        import sys
        sys.path.append(r'../pysrc')
        import pydevd
        pydevd.settrace('10.51.2.91', port=5678) # IP of your Eclipse machine
or
        pydevd.settrace('10.51.2.91', port=5678, stdoutToServer=True, stderrorToServer=True)

where IP is adress of machine running Eclipse program 

No comments:

Post a Comment

Followers

About Me