AWS Magic
develop
develop
  • Welcome
  • Lambda
    • Local Lambda Development
      • Prerequisites
      • Starter Kit or Manual?
      • Use Starter Kit
      • Manual Configuration
        • Environment Variables
        • Python Setup
        • Node Setup
        • Source & Config Files
        • Test The Configuration
      • Run Lambda in VSCode
      • Debug Lambda in VSCode
      • Deploy Lambda Function
    • Lambda & API GW
  • TypeScript
    • Promises
Powered by GitBook
On this page

Was this helpful?

  1. Lambda
  2. Local Lambda Development

Debug Lambda in VSCode

PreviousRun Lambda in VSCodeNextDeploy Lambda Function

Last updated 5 years ago

Was this helpful?

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