When using the serverless framework (on a Mac OS X High Sierra), the SLS_DEBUG
environmental variable was set to enable verbose debug info
export SLS_DEBUG=*
Question: Now how do you disable it (other than moving to a new terminal)? export SLS_DEBUG=false
did not do the trick.
The SLS_DEBUG environment variable is set to let Serverless Framework know that this application needs to be running in debug mode. And once node executes the node –debug command, it will use the serverless-offline plugin to run the function locally.
Show activity on this post. Set it in your system environment variable. For Windows: Set it in the System Environment variable. The export SLS_DEBUG=true command works for Linux as well. =D.
Serverless offline plugin will respond to the overall framework settings and output additional information to the console in debug mode. In order to do this you will have to set the SLS_DEBUG environmental variable. SLS_DEBUG=* sls offline start
THE CHALLENGES OF DEBUGGING A SERVERLESS APPLICATION A serverless application in AWS has event sources like API Gateway, DynamoDB, SQS or Kinesis invoking a Lambda Function. Then, the function makes calls to DBs, SNS/SQS, a workload on ECS/EKS, or even services running outside AWS, such as Twilio or Stripe.
COMMERCIAL TOOLS FOR DEBUGGING SERVERLESS ON AWS CLOUD So, as you can see, debugging an application on AWS cloud is possible to do using native tools like SAM, CloudWatch, and X-Ray, or open-source tools like Serverless Framework.
When using the serverless framework (on a Mac OS X High Sierra), the SLS_DEBUGenvironmental variable was set to enable verbose debug info export SLS_DEBUG=* Question:Now how do you disable it (other than moving to a new terminal)?
You can remove an environment variable by:
unset SLS_DEBUG
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With