Example for debugging serverless framework app on local with PyCharm
# prepare .env file
cp .env.sample .env
docker-compose build --no-cache
docker-compose up -d
# setup project interpreter on PyCharm (./screenshot/1.png - 2.png)
# and
# setup run configuration on PyCharm (./screenshot/3.png)
# and
# start debug server on host PyCharm
docker-compose exec slsapp sls invoke local --function hello
# => debug
docker-compose exec slsapp sls offline --host 0.0.0.0
# => localhost:3000 on host
# => debug