Sources for the debugger used in PyDev & PyCharm
Python C++ C Makefile Shell Batchfile
Latest commit 18deb8f Apr 12, 2017 @fabioz Regenerated cython
Permalink
Failed to load latest commit information.
.settings Supporting Jython on CI. Apr 7, 2017
_pydev_bundle Supporting Jython on CI. Apr 7, 2017
_pydev_imps No longer putting True, False and object in builtins and fixing some … Mar 7, 2017
_pydev_runfiles Supporting Jython on CI. Apr 7, 2017
_pydevd_bundle Regenerated cython Apr 12, 2017
build_tools Supporting Jython on CI. Apr 7, 2017
gradle/wrapper Add gradle wrapper Feb 4, 2016
jython_test_deps Supporting Jython on CI. Apr 7, 2017
pydev_ipython No longer putting True, False and object in builtins and fixing some … Mar 7, 2017
pydev_sitecustomize Updating names. Dec 5, 2015
pydevd_attach_to_process Properly attaching to Python 3.5 and Python 3.6 on Windows. Mar 7, 2017
pydevd_concurrency_analyser No longer putting True, False and object in builtins and fixing some … Mar 7, 2017
pydevd_plugins Removing dict_contains (using 'in' keyword which was not available on… Mar 7, 2017
stubs Moved many modules to _pydevd_bundle. Nov 28, 2015
test_pydevd_reload Supporting Jython on CI. Apr 7, 2017
tests Supporting Jython on CI. Apr 7, 2017
tests_mainloop pep8 names Dec 5, 2015
tests_python Supporting Jython on CI. Apr 7, 2017
tests_runfiles Supporting Jython on CI. Apr 7, 2017
third_party Updating support for coverage, pep8->pycodestyle, autopep8. Mar 12, 2017
.gitignore Fix for #PyDev-650: PyDev 4.5.1 regression: application silently cras… Jan 20, 2016
.project Adding things only in pydev. Jul 17, 2014
.pydevproject Supporting Jython on CI. Apr 7, 2017
.travis.yml Supporting Jython on CI. Apr 7, 2017
.travis_install_jython_deps.sh Supporting Jython on CI. Apr 7, 2017
.travis_install_python_deps.sh Supporting Jython on CI. Apr 7, 2017
LICENSE Initial commit Jul 15, 2014
MANIFEST.in Improving our setup.py. Commiting cython .c file and using it on setu… Jan 2, 2016
README.rst Updated compatibility comments (Python 2.6+) Apr 10, 2017
appveyor.yml Fixing failing tests Nov 15, 2016
build.cmd Fix broken link #43 Jan 21, 2016
build.gradle Fix gradle exec task Nov 1, 2016
conftest.py Supporting Jython on CI. Apr 7, 2017
gradlew Add gradle wrapper Feb 4, 2016
gradlew.bat Add gradle wrapper Feb 4, 2016
interpreterInfo.py pep8 names Dec 9, 2015
pycompletionserver.py Supporting Jython on CI. Apr 7, 2017
pydev_app_engine_debug_startup.py Adding Python sources from PyDev. Jul 17, 2014
pydev_coverage.py Updating support for coverage, pep8->pycodestyle, autopep8. Mar 12, 2017
pydev_pysrc.py Adding more files which are only in PyDev. Jul 17, 2014
pydev_run_in_console.py "Show command line afterwards” breaks input during run and debug (PY-… Nov 1, 2016
pydevconsole.py No longer putting True, False and object in builtins and fixing some … Mar 7, 2017
pydevd.py Fixing the support for Jython 2.7.0 (stub for sys._current_frames, fi… Mar 30, 2017
pydevd_file_utils.py Supporting Jython on CI. Apr 7, 2017
pydevd_tracing.py Fix import errors after cherry-picking commits Nov 1, 2016
pytest.ini Fixing leak issue on tests / using pytest / fixed issue in console co… Nov 15, 2016
runfiles.py If the test framework can't be imported, show the error instead of go… Mar 27, 2017
setup.py Add pydev_tracing to modules Nov 18, 2016
setup_cython.py Fixed another type issue with cython. Jan 18, 2016

README.rst

PyDev.Debugger

The sources for the PyDev.Debugger (used in PyDev & PyCharm) may be seen at:

https://github.com/fabioz/PyDev.Debugger

In general, the debugger backend should NOT be installed separately if you're using an IDE which already bundles it (such as PyDev or PyCharm).

It is however available in PyPi so that it can be installed for doing remote debugging with pip -- so, when debugging a process which runs in another machine, it's possible to pip install pydevd and in the code use pydevd.settrace(host='10.1.1.1') to connect the debugger backend to the debugger UI running in the IDE (whereas previously the sources had to be manually copied from the IDE installation).

It should be compatible with Python 2.6 onwards (as well as Jython 2.7, IronPython and PyPy -- and any other variant which properly supports the Python structure for debuggers -- i.e.: sys.settrace/threading.settrace).

Recent versions contain speedup modules using Cython, which are generated with a few changes in the regular files to cythonize the files. To update and compile the cython sources (and generate some other auto-generated files), build_tools/build.py should be run -- note that the resulting .pyx and .c files should be commited.

To see performance changes, see:

https://www.speedtin.com/reports/7_pydevd_cython (performance results with cython). https://www.speedtin.com/reports/8_pydevd_pure_python (performance results without cython).

To generate a distribution with the precompiled binaries for the IDE, build_binaries_windows.py should be run ( note that the environments must be pre-created as specified in that file).

To generate a distribution to upload to PyPi, python setup.py sdist bdist_wheel should be run for each python version which should have a wheel and afterwards twine upload -s dist/pydevd-* shoud be run to actually upload the contents to PyPi.

Travis (Linux CI):

travis

Appveyor (Windows CI):

appveyor