title: How to enable NODE_DEBUG without environment variables?
body: <p>I am trying to debug what appears to be a socket error in the node.js https library environment when running in the AWS Lambda environment (Node.js 4.3).  This issue only occurs highly intermittently and only under heavy load.  My team has been able to reproduce the issue consistently with a load test, and we would like to enable debug logging from the https module.   </p>
  
  <p>I've found in the node documentation that I can enable debug logging by setting the <code>NODE_DEBUG=https</code> environment variable.  However, I don't believe that I can set environment variables: <a href="https://stackoverflow.com/questions/36230545/how-can-i-use-environmental-variables-on-aws-lambda">How can I use environmental variables on AWS Lambda?</a>.  Additionally, I don't have the ability to change the command line that Lambda uses to invoke my function.</p>
  
  <p>Is there another way to create the same debug logging as setting <code>NODE_DEBUG</code>?</p>