- In IntelliJ IDEA/PyCharm, debugger won't work in the package named "code".
- Better not to name source-root directory "code".
When code dir is a package (see ng.png below), you'll get following error when starting debug tool shown in the image (ng-log.png).
Remove __init__.py
from code
dir (ok.png).