remote debug issue - port 53025 not open?

  • 1
  • 7

Actually using IntelliJ but this seems to be the appropriate forum. I'm trying to setup remote python debug on a polyglot site. I'm following the instructions I believe, but not having any luck..

in my python file to set debug breakpoint:

import sys
sys.path.append(".../cgi-bin/pycharm-debug.egg")
import pydevd
pydevd.settrace('localhost', port=53025, stdoutToServer=True, stderrToServer=True)

so I start the debugger

debugger says:

Starting debug server at port 53025
Use the following code to connect to the debugger:
Waiting for connection...
import pydevd
pydevd.settrace('localhost', port=53025, stdoutToServer=True, stderrToServer=True)

in the site, I access a php file, that in the stack will call the python file where I have set the breakpoint

error_log file says:
Could not connect to localhost: 53025
Traceback (most recent call last):
File "..../cgi-bin/pycharm-debug.egg/pydevd_comm.py", line 428, in StartClient
pydevd.settrace('localhost'


I needed to set 'localhost' to an actual IP address my laptop was assigned on the router. Also, in my vhosts localhost was aliased to the actual site I was debugging