wasmにソースのfull pathが入ってしまい、dockerでvolumeしてるlocalから拾ってくれない。javascriptはいけるんだが、コンテナ直にsshで入らないとダメか?
chromeの拡張機能に設定があるが効かない、、、
$ EMCC_DEBUG=1 emcc hello.c -o hello.html # default debug build $ emcc -O0 -g3 -gsource-map hello.c -o hello.html # manual debug build $ emcc -O0 -g -gsource-map -gseparate-dwarf=hello.debug.wasm -s \ SEPARATE_DWARF_URL="file://~/source/docker_emscripten/src/hello.debug.wasm" \ hello.c -o hello.html $ emrun --no_browser --port 8080 . # run http test server
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:8080",
"port": 9223,
"runtimeArgs": [
"--new-window",
"--remote-debugging-port=9223"
],
"runtimeExecutable": "canary",
"webRoot": "${workspaceRoot}/src"
}
}