Oh!Super164 取り留めのない日記のような

2025/2/20 木曜日

emscripten

Filed under: プログラミング,備忘録 — pecos @ 1:48:27

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"
      }
}

コメントはまだありません »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress