little-bear-labs / aws-utils

Apache License 2.0
56 stars 35 forks source link

Allow execution of child process on lambda fork process #138

Closed Mystogab closed 5 years ago

Mystogab commented 5 years ago

This allow execution of child process on lambda fork process with the '--inspect-brk' for debuggin propurses, can also be used NODE_DEBUG="appsync-*" as check to know if debug env is on, in this code put SLS_DEBUG but feel free to use which you think is better. Pseudo ides like VSCode can now (with auto attach child process set to true) attach to lambda worker and debug line by line. I choosed inspect-brk over inspect because node will resolve which port is empty for debug.

cbaron commented 5 years ago

@Mystogab -- thanks for the contribution!

Once the Travis CI build passes, we can merge. It looks like we need to make the code linter happy:

Run: yarn lint --fix at the root of the repo and push. Let me know if I can be of assistance.