Skip to content

Debugging help / using --inspect flag throws "error : unknown option" #148

Closed
@madebycaliper

Description

@madebycaliper

Hiya. I'm trying to configure VSCode to debug locally and after a couple hours searching and testing I'm opening this ticket and pausing so I can get some guidance. I've added the webpack.functions.js file and referenced it in my script command, but using the --inspect flag throws the error:

error: unknown option `--inspect'
error Command failed with exit code 1.

(I'm using yarn v1.9.4 and netlify-lambda v1.4.5)

Also, the Readme file has the following instructions but, unfortunately, I have no clue what it means or how I would enable this:

If using VSCode, it is likely that the sourceMapPathOverrides have to be adapted for breakpoints to work.

I think there's an assumption that I would be a more seasoned re: Node + Webpack, but I personally don't have much at all. I'm using Netlify to deploy a Vue.js app that leverages Functions as an API layer, so I know the Vue ecosystem way better than Node/Webpack/Lambda.

Having clearer documentation around this would be super helpful. Thank you guys so much for working on this product!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions