Cannot debug serverless application in Visual Studio Code

前端 未结 4 1352
梦如初夏
梦如初夏 2021-01-01 21:18

I have tried to debug serverless application developed using serverless framework in VS code. I have followed this article.

But when I trying to debug the code I\'m

4条回答
  •  灰色年华
    2021-01-01 21:57

    To get debugging to work with TypeScript I needed to add outFiles set to the folder where my compiled code goes.

    "outFiles": [
        "${workspaceRoot}/dist/**/*.js"
    ]
    

    I haven't tried to debug straight JS but I would assume it's something like this.

    "outFiles": [
        "${workspaceRoot}/**/*.js"
    ]
    

提交回复
热议问题