6

I'm using TypeScript to power an Express application.

I have nodemon instantiating node with the --inspect option.

  • I CAN connect a debug session, and hit a breakpoint in WebStorm.
  • I cannot get it to hit the proper line.

Here's my tsconfig.json

{
  "compilerOptions": {
    "target": "es6",
    "lib": ["es2017"],
    "module": "commonjs",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "noResolve": false,
    "noEmitOnError": false,
    "noImplicitAny": true,
    "declaration": true,
    "sourceMap": true,
    "outDir": "dist/",
    "moduleResolution": "node",
    "skipLibCheck": true
  },
  "include": [
    "src/**/*.ts",
    "test/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

enter image description here

package.json

"ts-node": "^5.0.1",
"typescript": "^2.7.2"  

Why won't WebStorm hit the proper breakpoint and inspect the req / res?

4

0 回答 0