PyCharm Debugger Not Working / Breakpoints Not Hit
Quick answer
PyCharm uses debugpy for Python 3.9+ on local and WSL interpreters. Remote interpreters, Attach to Process and some run types are not covered, so switch the debugger mode to pydevd.
Most likely fix: Switch debugger mode to pydevd
How to fix it
Try these in order — the most common fix is first.
1. Switch debugger mode to pydevd
- Settings | Python | Debugger
- Set the Debugger mode field to pydevd, or use the selector in the Debug window's upper-right corner
Did this fix it?2. Check basic debug setup
- Set a breakpoint, right-click the file and choose Debug <filename>
- Review Settings | Python | Debugger options such as Debug just my code
Did this fix it?
Symptoms
Debug starts but breakpoints are ignored, or debugging a remote or special run type fails.
Why it happens
- Remote interpreter (SSH, Docker, Vagrant)
- Attach to Process, Scrapy, Sphinx doctest, remote Jupyter, non-server manage.py tasks
- Debugger mode mismatch
This guide also covers
- pycharm debugger not working
- pycharm breakpoint not hit
- pycharm debug not stopping at breakpoint
Still not working?
If PyCharm keeps failing, you're not alone. See every PyCharm problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther PyCharm errors
- PyCharm Invalid Python Interpreter / Invalid Environment
- PyCharm No Python Interpreter Configured for the Project
- PyCharm Unresolved Reference: Installed Package Not Recognized
- PyCharm Cannot Install or Find a Package
- PyCharm Conda Executable Not Found / Conda Environment Not Detected
- PyCharm Indexing Takes Forever / Stuck on Analyzing Project
- PyCharm Low Memory Warning: How to Increase the Heap Size
- PyCharm Invalidate Caches / Restart: When and How