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?
The easiest option I have so far with VS Code is this:
Create a new file, lets say call it debug.js
and just call your lambda function from here, something like this:
const app = require('./index')
app.handler()
Change program entry of the launcher.json
file like this:
"program": "${workspaceFolder}/
You can now just put a breakpoint on this line (app.handler()
) and it works