Synchronising line numbers
I have some code which is processed by the Web server before being served. This means the served file will have extra lines inserted. Is there any way of telling WebStorm that a particular bit of code is at a certain line number in the source?
Please sign in to leave a comment.
Yes - you need to get source maps produced by your server. WebStorm uses source maps to map source files to generated ones
Can you point me at documentation for how to do that, please?
Hmm.. What documentation are you looking for? here is thesourcemap spec: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?hl=en_US