Debug Lambda in VSCode

To debug a lambda function, first we need to set break points. Open index.ts file and click the space before the number line. You will see a red dot appear.

Press shift + command + P and select Tasks: Run Task and then selectnpm: debug - function-one Finally press F5 to start debugging process.

Below you can see the variable values after F5 is pressed (debugging started).

Last updated

Was this helpful?