From 9e0cb768cd3098e6de253913621887351f719d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Fri, 2 Jun 2023 15:47:44 +0200 Subject: [PATCH] wasm: log stack traces for exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is very useful for debugging. Pick-to: 6.6 Change-Id: I4861afb9bd2b4e757a962d81583a8b12958f9f1c Reviewed-by: Mikołaj Boc Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/wasm/wasm_shell.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wasm/wasm_shell.html b/src/plugins/platforms/wasm/wasm_shell.html index 89666776da..9924890122 100644 --- a/src/plugins/platforms/wasm/wasm_shell.html +++ b/src/plugins/platforms/wasm/wasm_shell.html @@ -63,6 +63,7 @@ }); } catch (e) { console.error(e); + console.error(e.stack); status.innerHTML = e.message; showUi(spinner); }