“Attribute 'program' does not exist” for basic node.js project

前端 未结 12 1319
南方客
南方客 2021-01-31 13:08

I created simple node.js application (source code from here https://azure.microsoft.com/en-us/blog/visual-studio-code-and-azure-app-service-a-perfect-fit/)

var h         


        
12条回答
  •  再見小時候
    2021-01-31 13:39

    I had the same issue. In my case my launch.json had following line

    "program": "${workspaceFolder}\\index.js"
    

    My active code that I tried to debug was in app_v2.js , so I updated it to following, and then debug worked.

    "program": "${workspaceFolder}\\app_v2.js"
    

提交回复
热议问题