php-wasm
php-wasm copied to clipboard
Emit symbol map and ship with packages for easier debugging
Emscripten has --emit-symbol-map which provides a symbol map. It makes debugging arbitrary errors like this easier. Shipping with the package avoids making custom builds:
TypeError: Cannot set properties of undefined (setting 'method')
❯ Object.1522466 node_modules/php-wasm/php-node.mjs:12:16885
❯ runEmAsmFunction node_modules/php-wasm/php-node.mjs:12:161702
❯ _emscripten_asm_const_int node_modules/php-wasm/php-node.mjs:12:161809
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:6400638
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:18784[57](https://git.drupalcode.org/issue/drupal_cms-3483001/-/jobs/3151382#L57)
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:4894767
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:8940680
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:7036892
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:3720996
❯ null.<anonymous> wasm:/wasm/0321cf0a:1:11427579
@mglaman I've got a branch with sourcemaps and symbols. I'll be pushing that out in a separate release-channel on NPM.
I'll post updates here as soon as that's out.