You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sam nodejs debug): don't break on async_hooks #3846
Problem:
Debugging a nodejs sam lambda always breaks at the nodejs internal
module `internal/async_hooks` before reaching the first user-specified
breakpoint. This is an old problem with `--inspect-brk`. #2758
Solution:
- For "Image" packagetype, send `NODE_OPTIONS=--inspect=…` in the
container environment variables instead of `--inspect-brk`.
- For "Zip" packagetype set the `continueOnAttach` vscode nodejs
debugger option, to workaround sam cli's hardcoded NODE_OPTIONS:
https://github.com/aws/aws-sam-cli/blob/1adc080b82476288804c41c553c5e2ad86f28298/samcli/local/docker/lambda_debug_settings.py#L165
0 commit comments