I'm trying to get TypeScript debugging to work. I have had it working on and off, and see no rhyme or reason as to why. This application contains a server part (witten in Java) and a client part (written in Typescript). Java debugging works fine. TypeScript debugging in Chrome works fine (using source maps). Typescript editing and compilation works fine (especially since IntelliJ 15). However, cross debugging from IntelliJ into Chrome usually fails with the dreaded "Remote URLs for several files aren't specified so breakpoints won't work in these files." popping up at the bottom of the screen, and breakpoints not working.
Note that I've had this working occasionally, so I know it can work. When it does, it's very nice. Then it stops working, seeminly without changing anything. I tried restarting Chrome and IntelliJ to no avail.
In the debug configuration I've done the following:
- Selected Chrome as browser.
- Entered the URL to launch in Chrome, pointing to the file to be debugged: http://localhost:8080/app/BlockListView.html
- In the "Remote URLs" list, I've assigned "http://localhost:8080" as the Remote URL corresponding to the folder containing the "app" directory mentioned above.
I would assume IntelliJ being able to figure out all other URLs/paths relative to this root, since it all corresponds file-for-file from here down. I can't believe I have to manually set the corresponding URL for each and every .ts file under the app directory. Do I? (The "Remote URLs for several files..." message seem to imply that I do.)
What more do I need to configure to make this work reliably?