Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable SLS_DEBUG=* in the Serverless Framework

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.

like image 988
Nyxynyx Avatar asked Sep 18 '18 02:09

Nyxynyx


People also ask

What is Sls_debug?

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.

How do I enable SLS debugging?

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.

How to debug serverless offline plugin?

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

What are the challenges of debugging a serverless application?

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.

How do I debug a serverless application in AWS?

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.

What does the SLS_debug variable do?

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)?


1 Answers

You can remove an environment variable by:

unset SLS_DEBUG
like image 160
Benny Bauer Avatar answered Oct 19 '22 07:10

Benny Bauer