how to debug nashorn typescript
Answered
IntelliJ supports debugging javascript code running inside Nashorn, e.g., breakpoints, inspect variables.
However, I am wondering if IntelliJ supports debugging typescript code, i.e.,
- typescript filewatcher converts *.ts file to *.js file + .js.map file
- set breakpoints in *.ts file
- run the generated *.js file in Nashorn
I tried it, and it didn't work. Is it possible with IntelliJ 13.1.2? or JebBrain can support it in future release?
thx a lot
Please sign in to leave a comment.
Did you find any answer?
In general, it is possible to debug TypeScript - it will be automatically compiled to JavaScript. Also, the source map files should be created. Please refer to the following help topics for details: https://www.jetbrains.com/help/idea/running-and-debugging-typescript.html#ts_compiler_compile_code, https://www.jetbrains.com/help/idea/running-and-debugging-typescript.html#ws_ts_debug. If this information does not help, please share a video that demonstrates the problematic behavior.