Nodejs8 and debug with intellij

I would like to know how we can debug some REST API exposed with restify in intellij ?

Since i upgraded to nodejs8 LTS any of our breakpoints are hit anymore.

 

After a whole day of search and tries, i feel totally lost

0
2 comments

What IDEA version do you use? what run configuration do you use for debugging? Please attach a screnshot

0
Avatar
Permanently deleted user

Hi Elena,

To answer your question, i'm using IntelliJ 2017.2.6.

After some more investigation, i finally found what was the origin of my problem.

It was finally because of my sourceMap configuration in my tsconfig.json.

I had to remove the attributes :

  • sourceMap
  • mapRoot

and replace them by :

  • inlineSourceMap: true
  • inlineSources: true

With this, i can debug again in my intelliJ the typescript code.

 

Thanks for your time.

0

Please sign in to leave a comment.