Search code examples
serverless-framework

How to set SLS_DEBUG in windows?


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.


Solution

  • 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.