Skip to main content

PyCharm Debugger (used in PyCharm and PyDev)

Project description

PyDev.Debugger

PyCharms' fork of PyDev.Debugger.

Installation

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).

Compatibility

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-pycharm and in the code use pydevd_pycharm.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 committed.

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-* should be run to actually upload the contents to PyPi.

Dependencies

CI dependencies are stored in ci-requirements/. These are high-level dependencies required to initialize tests execution. Basically tox and it's transient requirements.

Test dependencies are stored in test-requirements/. These dependencies are required for successful execution of all the tests.

For local development you only need CI dependencies. Test dependencies are completely handled by tox, assuming you are running tests through it.

Dependencies are pinned and split by supported Python version. It is done ...

  • to avoid rogue dependency update crashing the tests and consequently safe-push overnight if the test is in the aggregator,
  • to have reproducible builds,
  • to avoid finding a set of dependencies which satisfy all the supported Python version simultaneously.

For more details on the current dependency declaration approach see PCQA-914 and PCQA-904.

Tests

Tests are executed via tox with the help of pytest.

To run all tests ...

tox

To run test vs. a specific Python version, e.g., Python 3.13 ...

tox -e py313

To run a specific test vs. a specific Python version ...

tox -e py313 -- pydev_tests/test_pyserver.py::TestCPython::test_message

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydevd_pycharm-262.6653.28.tar.gz (7.6 MB view details)

Uploaded Source

File details

Details for the file pydevd_pycharm-262.6653.28.tar.gz.

File metadata

  • Download URL: pydevd_pycharm-262.6653.28.tar.gz
  • Upload date:
  • Size: 7.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pydevd_pycharm-262.6653.28.tar.gz
Algorithm Hash digest
SHA256 df53de5c072326d3b76ee66d1478ea48a213b415f0114b4774b773e94d743d8f
MD5 4cce76f4afab4edb9476c2b59d1d1a1a
BLAKE2b-256 71b278729ea83475f018906566c81007e23a173acbe735a1daa95d78e2050255

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page