Skip to content

Instantly share code, notes, and snippets.

@tuxedocat
Last active February 13, 2018 14:01
Show Gist options
  • Save tuxedocat/9aef389db681917183483a4e83b49b29 to your computer and use it in GitHub Desktop.
Save tuxedocat/9aef389db681917183483a4e83b49b29 to your computer and use it in GitHub Desktop.
[IDEA/PyCharm] If you make "code" directory as a package, you'll waste some minutes to figure out...

TLDR

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment