'Debugging Amplify Lambda function in JetBrains IDE

I have been trying to debug AWS Lambda function provided by Amplify in WebStorm, but breakpoints are not hit.

I followed https://github.com/aws-amplify/amplify-cli/issues/1158 so I configured IDE Run/Debug Configurations like this

enter image description here

Lambda is successfully invoked but breakpoint is not hit. Any suggestion how to make it working?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source