Search code examples
typescriptwebstorm

In WebStorm with TypeScript, How to Debug While TS errors?


I need to debug my node program by launching server.js first (not server.ts). This means, I want my typescript compiled first, but I don't want it to stop (abort) on typescript errors that I will fix later. Now, webstorm stops when I try and debug.

How can I make it keep going?


Solution

  • Did you add typescript compiler to Before launch section of your run configuration? If yes, you need to disable Check errors in Typescript compiler settings there, otherwise the application won't be launched if compiler errors are reported:

    enter image description here