In addition to the --no-debug flag supported by Tinygo, there is another flag supported by wasm-opt and used by default in previous releases of our Tinygo fork:
"--debuginfo,-g" - Emit names section in wasm binary (or full debuginfo in wast)
It was recently removed (to reduce the binary size), but this also makes the stack traces harder to understand. Instead, we should be able to conditionally pass it to the Tinygo build process.