If you build each source file with -g, and build the final linked output
with -g4, you should get valid source maps, assuming that the source files
are in the right relative position (as when they were compiled). If that
doesn't work for you, can you make a testcase showing the issue?

- Alon



On Tue, Jul 1, 2014 at 2:23 AM, Warren Seine <[email protected]> wrote:

> Hi,
>
> I can generate source maps for my main program, but when linking libraries
> generated from different paths, the source mapper can't find the source
> files for libraries. The source mapper doesn't allow to specify multiple
> look-up paths and even if it did, I'm sure it'd introduce new issues.
>
> Here are the questions:
>
>    - What's the current status for the Emscripten source mapper? Are
>    people really able to use it to debug large codebases including libraries?
>    - Would it be possible to build each source map when building
>    libraries, and somehow merge them when linking?
>    - If not, what's the workaround? Using absolute paths when building?
>
> Thanks,
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to