How to set base-url for --source-map-base?

17 views
Skip to first unread message

キャロウ マーク

unread,
Jul 19, 2019, 8:33:14 PM7/19/19
to emscripten-discuss
I have what is presumably the default situation where the .map file is alongside the .js, .wasm and .html files. What should I use for base-URL. I would have thought an empty string but there seems no way to pass such to —source-map-base.

Actually the base url may not be the problem, the browser debugger does not appear to make making any effort to fetch the .map file. What do I need to do to enable that?

Regards

-Mark
signature.asc

キャロウ マーク

unread,
Jul 19, 2019, 9:35:58 PM7/19/19
to emscripten-discuss


> On Jul 19, 2019, at 17:33, キャロウ マーク <git...@callow.im> wrote:
>
> I have what is presumably the default situation where the .map file is alongside the .js, .wasm and .html files. What should I use for base-URL. I would have thought an empty string but there seems no way to pass such to —source-map-base.
>
> Actually the base url may not be the problem, the browser debugger does not appear to make making any effort to fetch the .map file. What do I need to do to enable that?
>

./ works. Doh! However while I now see the browser fetching the source map the debugger is not presenting me any of the sources.. I will have to find some use documentation for the debugger.




signature.asc

Floh

unread,
Jul 20, 2019, 9:52:55 AM7/20/19
to emscripten-discuss
Getting the source code associated with source maps to actually show up in the Chrome debugger is a bit of a UX puzzle, see here:


By default it's trying to download the source code from the HTTP server, but Chrome has a separate view on the local filesystem which must be populated manually.

Cheers,
-Floh.
Reply all
Reply to author
Forward
0 new messages