emscripten-core / emscripten-core/emscripten

Option for compiling stdlib with debug symbols

Open
#14,619 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

By default, Emscripten compiles the C/C++ standard libraries without debug symbols. This can be checked by running llvm-dwarfdump on files from upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/.
This causes troubles when debugging crashes that happen inside the standard library functions.

Can there be a simple way for forcing debug symbols (`-g`) in the standard library built by Emscripten?

The current workaround is, for example, to hack emcc.py to always specify `-g` regardless of the input parameters.

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.