# Problem building lambda function

**URL:** <https://answers.netlify.com/t/problem-building-lambda-function/44460>\
**Category:** Support\
**Tags:** lambda-functions\
**Created:** [September 21, 2021, 2:04pm UTC](https://answers.netlify.com/t/problem-building-lambda-function/44460 "2021-09-21T14:04:38Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![ShaCP](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/shacp/32/28321_2.png) [@ShaCP](https://answers.netlify.com/u/ShaCP)\
**Post date:** [September 30, 2021, 9:01pm UTC](https://answers.netlify.com/t/problem-building-lambda-function/44460/15 "2021-09-30T21:01:44Z")

</div>

I was actually able to get breakpoints working using the file inside .netlify. So that’s some progress. Thanks @hrishikesh. I just had to remove the commented code from the launch.json I was using with netlify-lambda:

```auto
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Netlify Debugging",
            "type": "pwa-node",
            "request": "launch",
            "program": "${workspaceFolder}\\node_modules\\.bin\\netlify",
            "runtimeArgs": [
                "run-script",
                "debug"
            ],
            "runtimeExecutable": "npm",
            "skipFiles": [
                "<node_internals>/**"
            ],
           // "sourceMapPathOverrides": {
           // "webpack:///./*": "${workspaceFolder}/src/utilities/lambda/*",
            },
            "resolveSourceMapLocations": [
                "${workspaceFolder}/**",
                "! **/node_modules/**"
            ]
        }
    ]
}

```

Still would like to know if I can step through my original file with the original syntax rather than a transformed file. And also would still like to know why the launch.json config I mentioned in the post above isn’t working for me.

---

_[View the full topic](https://answers.netlify.com/t/problem-building-lambda-function/44460)._
