JetBrains IDE Support with Typescript in IDEA Ulitmate?
Is JetBrains IDE Support supposed to work for Typescript in IDEA Ultimate? I've got the LiveEdit plugin installed (IDEA Ultimate 2016.3.2 Build #IU-163.10154.41), and I have the IDE Support plugin in Chrome (55.0.2883.87 m).
When I debug a Karma configuration for my Typescript test, I get my usual Karma browser window, then it opens my Chrome window with the yellow "JetBrains IDE Support is doing its thing" bar across the top, and IntelliJ shows me its "Make sure you've got JetBrains IDE Support in your browser" balloon popup. So far, so good.
My test starts to run, and I can see logging in the Karma console. Also good.
However, none of my Typescript breakpoints get hit. Not so good. In fact, bad. The whole reason I want to do this is so that I can set breakpoints, inspect variables, and so on.
Is this just not supported, or am I missing something?
Please sign in to leave a comment.
It is supported. Might be a configuration issue (missing/broken sourcemaps, code instrumented for coverage, etc.) or a bug. Sample project that shows up the issue would be helpful. Note: I don't need your actual code/specs, a single dummy test would be enough. But your configuration (karma config, tsconfig.json, build scripts, etc.) should be there, so that the problem can be recreated using this dummy spec
I figured out the problem. The code I was trying to breakpoint (Foo.ts) lives in module A, and the test is in module B. Our build system copies things from module A into a lib directory, so there are now two copies of Foo.ts - one in my source tree and one in the lib directory. I was breakpointing the one in the source tree, not the one in the lib directory.
I stuck the breakpoint on that one instead, and everything seems to work now.