Wednesday 26 April 2017

Debugging node with TypeScript code in Chrome

I'm using the universal starter (you can download to try) of Angular 2. This is a starter kit with client side and server side. I want to debug the server side (node) in chrome. When I'm running:

node --inspect --debug-brk dist/server/index.js

I get an URL that I can use in Chrome to debug node but this is showing only the js code. I want to debug the TypeScript code. In Chrome there is the following note:

enter image description here

So it seems chrome find the map files, but I didn't find the way to see the ts files in Chrome and debug the ts files.

Can someone please tell me how can I debug the node TypeScript code?



via rafraph

No comments:

Post a Comment