I’m trying to setup debugger when I run a function locally. Currently I execute function this way:
serverless invoke local --function myFunctionName --env dev --path ./events/myFunctionName.json
I’d like to know how could I debug this running function. I’m using Windows 10 and NodeJS. Also I need suggestion in how to configure properly the debugger in VSCODE for lambdas.
For example, using sam is as simple as:
sam local invoke myFunctionName--event ./events/myFunctionName.json --debug-port 9229
thank you