Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does this work with transpilation? Say I have typescript or a just different js than the end build, how does the debugger know which line to put the breakpoint on?

Does the run config need to be something more structured than "run this gulp command"?



Pretty sure all you need is source maps.


Yep, source maps do the trick.


late response, but i just got stop debugging for a typescript/node app set up in webstorm. far easier than i (and this article) had built it up to be. the sourcemap stuff was actually already taken care of, it was the addition of `$NODE_DEBUG_OPTION` to the `ts-node-dev` command that did the trick




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: