emscripten-core/emscripten

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

Open

#13,687 建立於 2021年3月17日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)C++ (3,519 fork)batch import
good first bughelp wanted

倉庫指標

Star
 (27,361 star)
PR 合併指標
 (平均合併 19天 10小時) (30 天內合併 147 個 PR)

描述

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

On any trivial example:

  • 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)

貢獻者指南