Skip to content

Commit 337fa38

Browse files
[skip ci] Document how to symbolicate stack trace
1 parent e0e327f commit 337fa38

File tree

1 file changed

+6
-0
lines changed
  • packages/npm-packages/ruby-head-wasm-wasi

1 file changed

+6
-0
lines changed

packages/npm-packages/ruby-head-wasm-wasi/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ import { DefaultRubyVM } from "ruby-head-wasm-wasi/dist/node.cjs.js";
2222

2323
const main = async () => {
2424
const binary = await fs.readFile(
25+
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
26+
// (only nightly release for now)
27+
// "./node_modules/ruby-head-wasm-wasi/dist/ruby.debug.wasm"
2528
"./node_modules/ruby-head-wasm-wasi/dist/ruby.wasm"
2629
);
2730
const module = await WebAssembly.compile(binary);
@@ -55,6 +58,9 @@ See [the example project](./example) for more details.
5558
const main = async () => {
5659
// Fetch and instntiate WebAssembly binary
5760
const response = await fetch(
61+
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
62+
// (only nightly release for now)
63+
// "https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/ruby.debug.wasm"
5864
"https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/ruby.wasm"
5965
);
6066
const buffer = await response.arrayBuffer();

0 commit comments

Comments
 (0)