Skip to content

debug-wise args are not honored #531

Description

@Deilan
  • nodemon -v: 1.14.12
  • node -v: 8.9.4
  • ts-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

  1. clone https://github.com/deilan-issues-samples/ts-node-issue-531
  2. yarn install or npm install
  3. yarn run serve:debug or npm run serve:debug
  4. launch Attach to nodemon VS Code debug configuration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions