Setting up Node.js debugger with Nodemon and Typescript in VSCode editor
Refer to [article](https://dev.to/oieduardorabelo/nodejs-with-typescript-debug-inside-vscode-and-nodemon-23o7) for more informationpull/1/head
parent
3015eeb262
commit
312f1324ca
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "attach",
|
||||
"name": "Node: Nodemon",
|
||||
"processId": "${command:PickProcess}",
|
||||
"restart": true,
|
||||
"protocol": "inspector"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -2,5 +2,9 @@
|
|||
"watch": ["src"],
|
||||
"ext": "ts",
|
||||
"ignore": ["src/**/*.spec.ts"],
|
||||
"exec": "ts-node ./src/app.ts"
|
||||
"execMap": {
|
||||
"ts": "node --require ts-node/register"
|
||||
},
|
||||
"verbose": true,
|
||||
"restartable": "rs"
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
"typescript": "^3.9.5"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "nodemon"
|
||||
"start": "nodemon src/app.ts",
|
||||
"debug": "nodemon --inspect src/app.ts"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue