Skip to content

itamt/sls-py-debug-test

Repository files navigation

Overview

Example for debugging serverless framework app on local with PyCharm

How to

# 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

ref.

1

2

3

4

About

Example for debugging serverless framework app on local with PyCharm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published