Skip to main content

Plugin for py.test to enter PyCharm debugger on uncaught exceptions

Project description

Plugin for pytest to enter PyCharm debugger on uncaught exceptions

  • Free software: BSD license


  • Uncaught exceptions in pytest test cases will trigger the PyCharm debugger


You can install the plugin by running

pip install pytest-pycharm

Alternately check out the source code and run

python install


You are ready to go right after the plugin installation. Execute any test in PyCharm by right-clicking on a test and selecting Debug pytest in …. The debugger will pause on a false assertion (see test example).

The plugin also works with custom pytest Run Configurations: Run | Edit Configurations | Add New Configuration | Python tests | pytest.

Note: make sure the Run Configuration uses the correct interpreter with pytest-pycharm installed.

Project details

Download files

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

Files for pytest-pycharm, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_pycharm-0.7.0-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-pycharm-0.7.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page