Fix wasm activate instruction to activate 3.1.3 (#209)

This commit is contained in:
Ryan Orendorff
2023-01-31 10:25:20 -07:00
committed by GitHub
parent a8be112cb8
commit 70f28be1ee

View File

@@ -11,7 +11,7 @@ Rust features multiple targets for building WASM binaries, but Sunscreen current
```sh
git clone https://github.com/emscripten-core/emsdk.git
emsdk/emsdk install 3.1.3
emsdk/emsdk activate
emsdk/emsdk activate 3.1.3
```
You can try installing other toolchain versions if you wish, but we've seen the compiler seg fault and other strange errors when building our examples 🙃.
@@ -138,4 +138,4 @@ node http-server /git/repo/root/dir
### Debug your program on the website
Open Chrome and navigate to `http://localhost:8080/index.html`. Hit F12 to open the debugger. Chrome should find your source maps allowing you to navigate the stack, set breakpoints, step, continue, etc. all with real source code. Unfortunately, you can't see variables.
You can also use the `log` crate to print information to the debug console. If you go this route, use `simple-logger` as the logger backend; don't use a WASM-specific crate (e.g. `wasm-logger`) for this because emscripten already routes stdout and stderr to the console.
You can also use the `log` crate to print information to the debug console. If you go this route, use `simple-logger` as the logger backend; don't use a WASM-specific crate (e.g. `wasm-logger`) for this because emscripten already routes stdout and stderr to the console.