workstation: windows; Komodo IDE; PuTTY
server: linux (it can have paranoid firewall rules - all you need is SSH access)
$ wget "http://downloads.activestate.com/Komodo/releases/5.2.4/remotedebugging/Komodo-PythonRemoteDebugging-5.2.4-37659-linux-x86_64.tar.gz" $ tar -xvf Komodo-PythonRemoteDebugging-5.2.4-37659-linux-x86_64.tar.gz $ cd Komodo-PythonRemoteDebugging-5.2.4-37659-linux-x86_64
$ cp -R dbgp/ /local/modules/copy debugger bin/* someshere to PATH
$ cp bin/* ~/bin(why ActiveState do not provide setup.py?)
pydbgp -d 127.0.0.1:9000 test.py
In case if workstation run linux or macosx tunnel on step (4) should be done using native *nix utils.
Komodo itself is available for all platforms, so other steps do not change.
Server can run scripts under mod_python or mod_wsgi. To set software break-point use:
from dbgp.client import brk brk(host='127.0.0.1', port=9000)
To manage uncaught exceptions:
from dbgp.client import brkOnExcept brkOnExcept(host='127.0.0.1', port=9000)
More info: Remote Debugging in Komodo IDE, Debugging Python in Komodo IDE.
PS. Happy debugging!