Skip to first unread message

Rohan Gupta

Feb 19, 2023, 6:36:56 PM2/19/23
to Chrome DevTools

I am debugging a website where source maps are enabled. But chrome doesn't detect it. After searching I found that the .js files were missing the source map comment.

So, what I did was to right click and choose Add Source Maps and copy the .js file URL and append .map to it. But this things is difficult to do for each and every file. That worked for me and I was able to see the clean code in the form webpack://

I am looking for some way I can automate this process, without everytime doing the same thing for so many 20-30 .js files. For every file I just need to append .map in the end.

Please help with some solution maybe some extension, or some hacky way of programtically loading source maps using dev tools. 

Yang Guo

Feb 20, 2023, 3:25:35 AM2/20/23
to, Benedikt Meurer
Sounds like you need a source map map ;)

You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Benedikt Meurer

Feb 20, 2023, 4:29:32 AM2/20/23
to Yang Guo,
Per Source Map Revision 3 Proposal, there are currently two ways to link to source maps:
  1. The //# sourceMappingURL=<url> annotations that you already noticed.
  2. The SourceMap: <url> HTTP header.
It sounds like the former is not an option for you (no way you can tell the build system to emit these annotations?), so adding the HTTP header to your server might be your best bet then.


Benedikt Meurer

 • Chrome DevTools Lead

 Google Munich  


Google Germany GmbH

Erika-Mann-Straße 33

80636 München

Geschäftsführer: Paul Manicle, Liana Sebastian

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.


This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.

Yang Guo

Feb 20, 2023, 4:31:07 AM2/20/23
to Benedikt Meurer,
If you cannot change the HTTP header setting of your server, you can try to override the HTTP header in DevTools as described here.
Reply all
Reply to author
0 new messages