Debugging NestJS in WebStorm

In order to enable debugging of NestJS project in Webstorm edit the following file to include:

 

Edit¬†nodemon.json to include –inspect=5858 where 5858 is port number.

 

{
   "watch": [ "src" ],
   "ext": "ts",
   "ignore": [ "src/**/*.spec.ts" ],
   "exec": "ts-node --inspect=5858 -r tsconfig-paths/register src/main.hmr.ts"
}

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *