emscripten-core / emscripten-core/emscripten

Canary doesn't load dwarf symbols with "-g4 --source-map-base"

Open
#13,687 5 comments 0 reactions 0 assignees View on GitHub
good first bug help wanted
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I don't know if it's a browser (Canary) or an emscripten issue:

On any [trivial example](https://emscripten.org/docs/getting_started/Tutorial.html):
- When compiling and linking with "-g4 --source-map-base http://0.0.0.0:8000/", Canary correctly loads the .wasm.map file, and finds the source files, but debugging symbols are not resolved (local variables, arguments, etc.)

Other cases work fine:
- When compiling and linking with "-g", you get the dwarf symbols, but files are accessed through the local filesystem.
- When compiling and linking with "-gseparate-dwarf", you get the separate dwarf symbols, but files are accessed through the local filesystem.

Tested version: Emscripten 2.0.15 (Mar 09, 2021) (macOS)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.