How to debug flask in docker with intellij on Linux


Project to use in this page :

Clone it

git clone "ssh://" && scp -p -P 29418 "web/.git/hooks/"

Set up git-review

git review -s --verbose

I use intellij but PyCharm should be more or less the same.

Make sure your docker is configured correctly:

Add remote interpreter

First let’s run by default to make sure it’s working. docker-compose build && docker-compose up

Notice I changed the file name from quarry.wsgi to Comment it out in dockerfile

Run docker-compose build again.

Run debugger in intellij, hit debugger!