14

I am using serverless framework , and getting the following error -

For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Which environment are they talking about ? How to set this ?
Am using windows 10.

1
  • 3
    set SLS_DEBUG=* Commented Oct 4, 2018 at 5:02

5 Answers 5

24

Set it in your system environment variable.

For MacOS: Open Terminal and type the following:

export SLS_DEBUG=true 

For Windows: Set it in the System Environment variable.

Sign up to request clarification or add additional context in comments.

1 Comment

The export SLS_DEBUG=true command works for Linux as well. =D
9

for powershell:

 $Env:SLS_DEBUG='true' 

Comments

7

For dummies like me who has been using Windows since the very start, but still doesn't know what

For Windows: Set it in the System Environment variable.

means... a picture tells a thousand words...

enter image description here

Comments

1

SET export SLS_DEBUG=true in command prompt or set in System environment variable

Comments

0

if you are using command prompt you can use:

SET SLS_DEBUG=true

then your sls command eg =

SET SLS_DEBUG=true

sls deploy --stage=dev

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.