Debugging server-side typescript
Hi,
I'd like to know if Webstorm is capable of debugging server-side typescript and printing errors pointing to the correct files in the console.
I tried the project attached to the issue WEB-23632 (https://youtrack.jetbrains.com/issue/WEB-23632). I can successfully launch the project and put a breakpoint, in which the debugger correctly stops.
However, if I have an error in index.ts, for example if I write "a.b.c", I will see the following output in the console:
/home/daniel/dev/ws-test/ws-test/dist/index.js:13
a.b.c;
^
ReferenceError: a is not defined
at Object.<anonymous> (/home/daniel/dev/ws-test/ws-test/dist/index.js:13:1)
at Module._compile (module.js:570:32)
As you can see, the error points to index.js and not index.ts. Hence my question: is it possible to configure WebStorm so it shows errors in the original files?
Thanks,
Daniel
Please sign in to leave a comment.
Please follow https://youtrack.jetbrains.com/issue/WEB-10528 for updates
Thank you, I will.