Skip to content

Commit

Permalink
fix: Correct NODE_PATH NodeJS debugging ENV variable (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahung authored Feb 1, 2021
1 parent d406f89 commit 247ea3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samcli/local/docker/lambda_debug_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_debug_settings(debug_port, debug_args_list, _container_env_vars, runtime
+ ["--no-lazy", "--expose-gc"]
+ ["/var/runtime/index.js"],
container_env_vars={
"NODE_PATH": "/opt/nodejs/node_modules:/opt/nodejs/node10/node_modules:/var/runtime/node_module",
"NODE_PATH": "/opt/nodejs/node_modules:/opt/nodejs/node10/node_modules:/var/runtime/node_modules",
"NODE_OPTIONS": f"--inspect-brk=0.0.0.0:{str(debug_port)} --max-http-header-size 81920",
"AWS_EXECUTION_ENV": "AWS_Lambda_nodejs10.x",
**_container_env_vars,
Expand All @@ -119,7 +119,7 @@ def get_debug_settings(debug_port, debug_args_list, _container_env_vars, runtime
+ ["--no-lazy", "--expose-gc"]
+ ["/var/runtime/index.js"],
container_env_vars={
"NODE_PATH": "/opt/nodejs/node_modules:/opt/nodejs/node12/node_modules:/var/runtime/node_module",
"NODE_PATH": "/opt/nodejs/node_modules:/opt/nodejs/node12/node_modules:/var/runtime/node_modules",
"NODE_OPTIONS": f"--inspect-brk=0.0.0.0:{str(debug_port)} --max-http-header-size 81920",
"AWS_EXECUTION_ENV": "AWS_Lambda_nodejs12.x",
**_container_env_vars,
Expand Down

0 comments on commit 247ea3e

Please sign in to comment.