Question about source-map-base

20 views
Skip to first unread message

Dieter Weidenbrück (dweidenbrueck)

unread,
May 6, 2024, 9:49:00 AMMay 6
to emscripten-discuss
Hi all,

I noted that Chrome can't find the emscripten source files. This used to work at one point, but I don't know whether I changed anything or something else has changed.

My sources:
D:\Dev\myArea\myApp containing src, include, and other folders
Emscripten sources:
C:/Users/myName/emsdk/upstream/emscripten/

I run the project on localhost:
localhost/myArea/myApp
and I use
--source-map-base ./

The debugger can find all files in the myApp directory and below.
However, the source map shows:
src/filename.c for my files, which is correct
but
C:/Users/myName/emsdk/upstream/emscripten/... for emscripten files
which turns to
file:myArea/myApp/C:/Users/myName/emsdk/upstream/emscripten ...

Any idea how I can fix this?
Thanks for any advice!
Dieter

Sam Clegg

unread,
May 6, 2024, 11:36:43 AMMay 6
to emscripte...@googlegroups.com
Seems like a bug related to absolute files paths in source maps, maybe specific to windows.   Can you open a bug, ideally with a simple source map (smaller the better) attached? 

cheers,
sam

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/83a3e5a8-c56d-41fb-902f-25c5cae21fabn%40googlegroups.com.
Message has been deleted

Dieter Weidenbrück (dweidenbrueck)

unread,
May 7, 2024, 5:43:24 AMMay 7
to emscripten-discuss
Sure, here it is:
https://github.com/emscripten-core/emscripten/issues/21900

Thanks for giving attention to this.
Reply all
Reply to author
Forward
0 new messages