{"id":24438,"library":"pytest-pycharm","title":"pytest-pycharm","description":"Plugin for pytest to drop into PyCharm debugger on uncaught exceptions. Version 0.7.0 is the latest, with no recent updates. The plugin is in maintenance mode.","status":"maintenance","version":"0.7.0","language":"python","source_language":"en","source_url":"https://github.com/jlubcke/pytest-pycharm","tags":["pytest","debugging","pycharm","plugin"],"install":[{"cmd":"pip install pytest-pycharm","lang":"bash","label":"default"}],"dependencies":[],"imports":[],"quickstart":{"code":"import sys\nimport os\nos.environ.setdefault('PYCHARM_DEBUG_PORT', '12345')\n# Run pytest with --pycharm\n# ptest --pycharm tests/\n","lang":"python","description":"Install and run pytest with --pycharm flag to enable PyCharm debugger on uncaught exceptions. Ensure PyCharm debug server is listening."},"warnings":[{"fix":"Set up PyCharm's Remote Debug configuration (Run > Edit Configurations > Python Debug Server) and note the port.","message":"The plugin only works with PyCharm debug server; you must have PyCharm running with a Python Debug Server configured.","severity":"gotcha","affected_versions":"all"},{"fix":"In PyCharm, run the 'Python Debug Server' configuration before executing pytest.","message":"The plugin does not automatically connect; you must manually start the PyCharm debug server before running tests.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install pytest-pycharm. The plugin registers itself as a pytest plugin; no import needed.","cause":"Missing installation or incorrect import path.","error":"ModuleNotFoundError: No module named 'pytest_pycharm'"},{"fix":"Ensure pytest-pycharm is installed (pip list | grep pytest-pycharm) and run pytest with the --pycharm flag.","cause":"Plugin not installed or not activated.","error":"Error: unrecognized arguments: --pycharm"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}