Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Local Lambda Debugging #9

Open
fcobia opened this issue Jul 26, 2020 · 1 comment
Open

Local Lambda Debugging #9

fcobia opened this issue Jul 26, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@fcobia
Copy link
Contributor

fcobia commented Jul 26, 2020

The swift-was-lambda-runtime project has added the ability to run a local lambda server by setting the LOCAL_LAMBDA_SERVER_ENABLED environment variable to "true." I tried this with the Vapor integration and it does not seem to work.

It would be nice if this worked so I could run / debug inside Xcode on my Mac.

If you do not have time to do it, I have looked a little and am not sure where to look. Do you know where I would start to look into fixing this?

@fabianfett
Copy link
Contributor

Hi @fcobia, thanks for bringing this up. I can totally see the value of this and I'm thinking about how to achieve it.

The library uses an extension hook from swift-aws-lambda-runtime that is located below the level where the LOCAL_LAMBDA_SERVER_ENABLED environment variable is implemented, so we will need to reinvent the wheel for vapor-aws-lambda-runtime. I'm not sure what the best approach is for this yet.

@fabianfett fabianfett added enhancement New feature or request help wanted Extra attention is needed labels Jul 27, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

2 participants