From 9b9137bf0ae2c3cb8db074e6d881f26bc7b13666 Mon Sep 17 00:00:00 2001 From: svc64 Date: Sat, 5 Aug 2023 21:37:28 +0300 Subject: [PATCH] Log GDB server exceptions --- src/Ryujinx.HLE/Debugger/Debugger.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/Debugger/Debugger.cs b/src/Ryujinx.HLE/Debugger/Debugger.cs index 63e540b2a..a5a60cf7c 100644 --- a/src/Ryujinx.HLE/Debugger/Debugger.cs +++ b/src/Ryujinx.HLE/Debugger/Debugger.cs @@ -586,8 +586,9 @@ namespace Ryujinx.HLE.Debugger Logger.Notice.Print(LogClass.GdbStub, "GDB client lost connection"); goto restartListen; } - catch (Exception) + catch (Exception ex) { + Logger.Error?.Print(LogClass.GdbStub, ex.ToString()); Logger.Notice.Print(LogClass.GdbStub, "GDB stub socket closed"); return; }