Re: [Chrome DevTools] sourcemap support. Single javascript resource multiple modules/sourceMappingURLs

72 views
Skip to first unread message

Vsevolod Vlasov

unread,
Sep 26, 2012, 8:41:24 AM9/26/12
to Richard Backhouse, Google Chrome Developer Tools, podi...@chromium.org
I don't think this scenario is currently supported, adding Pavel who knows this stuff better.

On Wed, Sep 26, 2012 at 4:15 PM, Richard Backhouse <richarda...@gmail.com> wrote:
I asked the following question on stackoverflow with a tag of google-chrome-devtools but thought I would also post it here to see if anyone can shed some light on it.

I have been trying out the sourcemap support in Chrome and have found that it does not support having a single javascript resource attached to a script tag that contains multiple modules concatenated together along with a sourceMappingURL comment separating each one. The first mapping is hooked up and I see the modules source associated in the debugger but all the others are ignored.

I would expect that it would be a comment requirement to do this when multiple modules are minified and concatenated together

Is scenario supported ?

Thanks

Richard




Pavel Podivilov

unread,
Sep 26, 2012, 8:48:51 AM9/26/12
to Vsevolod Vlasov, Richard Backhouse, Google Chrome Developer Tools
Sounds like source map sections is what you need. See https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?hl=en_US#heading=h.535es3xeprgt.

BR,
Pavel Podivilov

Richard Backhouse

unread,
Sep 30, 2012, 8:30:15 AM9/30/12
to google-chrome-...@googlegroups.com, Vsevolod Vlasov, Richard Backhouse, podi...@google.com
Trying this out results in all the modules correctly showing up in the debugger however actually attempting to set breakpoints does not work too well. I can set a breakpoint but sometimes the debugger moves it to another line. This suggests a misalignment somewhere however the values I set for each sections line/column are correct. I should note that I am assuming  1 based line  and 1 based column values. The spec is not clear on this though.

Any suggestions

Thanks
Richard

Pavel Podivilov

unread,
Oct 1, 2012, 5:45:26 AM10/1/12
to Richard Backhouse, google-chrome-...@googlegroups.com, Vsevolod Vlasov
Lines and columns should be zero based, see Proposed Format section.

BR,
Pavel Podivilov
Reply all
Reply to author
Forward
0 new messages