How to debug aws lambda functions written in node js

后端 未结 9 3309
孤城傲影
孤城傲影 2021-02-20 13:34

We have been developing AWS Lambda functions in Node JS for a few months. Can we debug, i.e. step through the Node JS code as we can with .Net C# code in Visual Studio?

9条回答
  •  后悔当初
    2021-02-20 14:12

    You cannot debug the lambda code like you do in VS but you can invoke some test data and check everything is fine.

    1. You can run lambda locally in your machine using lambda-local and serverless-offline
    2. So invoke your lambda with some test event & data and you can log and see whats happening for different inputs

提交回复
热议问题