Closed
Description
nodemon -v
: 1.14.12node -v
: 8.9.4ts-node -v
: 4.1.0- Operating system/terminal environment: Windows 10 x64
- Command you ran:
nodemon
with the following nodemon.json
:
{
"verbose": true,
"watch": [
"src"
],
"ext": "ts",
"exec": "{{pwd}}/node_modules/.bin/ts-node ./src/index.ts --project ./tsconfig.development.json --inspect=5858 --inspect-brk"
}
Expected behaviour
--inspect=5858 --inspect-brk
are passed to node and one can connect with debugger
Actual behaviour
--inspect=5858 --inspect-brk
are not passed to node and one can't connect with debugger
terminal output:
[nodemon] 1.14.12
[nodemon] reading config .\nodemon.json
[nodemon] to restart at any time, enter `rs`
[nodemon] or send SIGHUP to 22156 to restart
[nodemon] watching: C:\Dev\node-typescript-vscode\src/**/*
[nodemon] watching extensions: ts
[nodemon] starting `C:\Dev\node-typescript-vscode/node_modules/.bin/ts-node ./src/index.ts --project ./tsconfig.development.json --inspect=5858 --inspect-brk`
[nodemon] spawning
[nodemon] child pid: 11272
[nodemon] watching 2 files
Steps to reproduce
- clone https://github.com/deilan-issues-samples/ts-node-issue-531
yarn install
ornpm install
yarn run serve:debug
ornpm run serve:debug
- launch
Attach to nodemon
VS Code debug configuration