remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.21k stars 1.72k forks source link

vscode launch config #2097

Closed sravanth-space closed 1 year ago

sravanth-space commented 1 year ago

Expected behaviour

start the session

Actual behaviour

open the server.js file instead.

Steps to reproduce


If applicable, please append the --dump flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.

sravanth-space commented 1 year ago

The issue might not be related to nodemon directly but posting to find a solution for launching in vscode. If it is completely not relevant please close the issue. Thanks.

atlanteh commented 1 year ago

You should probably use type = node-terminal. I'm using nodemon using package.json script and it works great for me. I'm guessing that using nodemon should also work in this case

{
            "command": "yarn start:dev",
            "name": "Debug Server",
            "request": "launch",
            "type": "node-terminal"
}