microsoft / vscode-recipes

MIT License
5.86k stars 577 forks source link

Nodemon recipe not working on VSCode 1.49.1 #273

Closed JohnnyDeeee closed 2 years ago

JohnnyDeeee commented 3 years ago

When i use the nodemon recipe, i only see 1 process in the PickProcess list and it's not my Node process.

Also it seems it's looking for a debug port 0...

image

Here is my package.json

{
  ...
  "scripts": {
    "start": "node ./bin/www",
    "debug": "nodemon --inspect=5555 ./bin/www"
  },
  "dependencies": {
    ...
    "nodemon": "^2.0.4",
    ...
  },
  ...
}
richajak commented 3 years ago

I also have the same problem, it is resolved by using the latest default setting of launch.json Do not use the recipe in this document, it is not valid anymore.

Use this

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "pwa-node", "request": "launch", "name": "Launch Program", "skipFiles": [ "/**" ], "program": "${workspaceFolder}\app.js" } ] }