I order to do some remote debugging, I recently copied pysrc to the
server and modified pydevd_file_utils.py as described in
http://pydev.org/manual_adv_remote_debugger.html. As far as I
understand, there is no separation between the (potentially) system-wide
module pysrc and its user-specific or project-specific configuration.
I would like to suggest refactoring the configuration variables out of
pydevd_file_utils.py into a new file pydevd_config.py. That way, it
should be possible to package pysrc and install it as a system-wide
module on a remote debugging server. Each user or project could specify
an appropriate configuration in a copy of pydevd_config.py. Of course,
that copy must be placed where it is found and imported before the
generic version in the system-wide package is found.
I'm attaching my versions of pydevd_file_utils.py and pydevd_config.py,
based on pydev 2.7.1, which I created for testing this approach.