aws / aws/aws-lambda-base-images

A port for debugging and stepping into the code

Open
#67 2 comments 5 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
777
Forks
118
PR merge metrics
No merged PRs in 30d

Description

When running the service locally it would be helpful to step into the code. This is possible when using SAM but not when we use container images and run the function using RIE.

Can you add a debug port mapping to be used? It can be enabled and disabled via the environment variable.

For example, when running usual java apps we can add `-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005` to the run command and then listen to 5005 to be able to step into the code.

I have previously created a [ticket](https://github.com/aws/aws-lambda-runtime-interface-emulator/issues/33) in the [aws-lambda-runtime-interface-emulator](https://github.com/aws/aws-lambda-runtime-interface-emulator) project. It was suggested that I reach out here instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.