From 66414b36fd23428ef82240f98afe3e6d99aa46cb 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. Change-Id: I4861afb9bd2b4e757a962d81583a8b12958f9f1c Reviewed-by: Mikołaj Boc Reviewed-by: Tor Arne Vestbø (cherry picked from commit 9e0cb768cd3098e6de253913621887351f719d72) Reviewed-by: Qt Cherry-pick Bot --- 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 89666776da0..99248901220 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); }