A
A
Al2016-09-20 12:24:28
JavaScript
Al, 2016-09-20 12:24:28

How to debug typescript in IntelliJ IDEA?

There is a regular js-debugger that connects to the browser through an extension, but it does not work with typescript files, the hacks are useless. Moreover, the debugger in chrome does not debug the generated js files, because they are loaded dynamically using systemJS.
Can you please explain to me how to debug ts in IntelliJ IDEA? And why don't dynamically loaded js even show up in the browser?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-09-20
@Casufi

https://www.jetbrains.com/help/webstorm/2016.1/deb... The
key phrase is "Although actually debugging will be performed against the generated JavaScript, WebStorm will emulate TypeScript debugging using the generated source-maps that set correspondence between lines in the TypeScript and in the JavaScript code."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question