From 8611b9d8bee38f1d39da58bcdff8a6157e97620f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Fri, 6 Jan 2023 14:23:17 +0100 Subject: [PATCH] wasm: make qtloader print stack trace on exception We were displaying the exception type by on the error page, however the exception contains a stack trace as well which we can print to the console. Pick-to: 6.4 6.5 Change-Id: Ia6c95c3f179eb68e57f9d6d2d8ad960591d0b365 Reviewed-by: Aleksandr Reviakin Reviewed-by: Lorn Potter --- src/plugins/platforms/wasm/qtloader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js index 5fa5c288f39..0419509098c 100644 --- a/src/plugins/platforms/wasm/qtloader.js +++ b/src/plugins/platforms/wasm/qtloader.js @@ -413,6 +413,8 @@ function _QtLoader(config) } else { publicAPI.exitText = exception.toString(); publicAPI.crashed = true; + // Print stack trace to console + console.log(exception); } setStatus("Exited"); };