dbgpproxy -i 9001 -d 9000
The IDE-PORT is where Komodo will to connect with the proxy and the DEBUG-PORT is where the application being debugged will connect to the proxy (see details below).
# Python pydbgp -d myname:9000 -k myname my_python_code.py # Perl export PERLDB_OPTS=RemotePort=mymachine:9000 export DBGP_IDEKEY=myname # PHP, uses the Xdebug php.ini settings, like: xdebug.remote_host=mymachine xdebug.remote_port=9000 xdebug.idekey=myname # Start your PHP debug session in your browser as you normally would, appending the xdebug string to the url "?XDEBUG_SESSION_START=myname"
# Python, -k sets the proxy key pydbgp -d myname:9000 -k myname my_python_code.py # PHP, start your PHP debug session in your browser as you normally would, appending the xdebug string to the url: ?XDEBUG_SESSION_START=myname # the name after the equals sign "myname" represents the IDE key
If you have machine A and machine B that cannot connect to each other, you may be able to use ssh port forwarding to pass the connection along between the two (often useful in the case of a vpn/private network, or where you have only access to an intermediate machine). The actual technique used is what is called a reverse SSH port forwarding, see http://toic.org/2009/01/18/reverse-ssh-port-forwarding/.
ssh -R 9000:localhost:9000 komodo.machine.com
if using an intermediate host, replace the localhost with the client address like this:
ssh -R 9000:client.machine.com:9000 komodo.machine.com
Additional configurations and settings for remote debugging can be found in Komodo's application help menu.