From 5a58a2e2840d584c56330d52f9d2f336dfd4fdff Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Thu, 21 Oct 2021 12:44:14 +0800 Subject: [PATCH] =?UTF-8?q?Debug=E4=BF=AE=E6=94=B9=E4=B8=BADebugging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi/ViewModels/Toolbox/ViewBiliHelperViewModel.cs | 2 +- DownKyi/ViewModels/ViewLoginViewModel.cs | 8 ++++---- DownKyi/ViewModels/ViewVideoDetailViewModel.cs | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DownKyi/ViewModels/Toolbox/ViewBiliHelperViewModel.cs b/DownKyi/ViewModels/Toolbox/ViewBiliHelperViewModel.cs index 42348b2..cff240b 100644 --- a/DownKyi/ViewModels/Toolbox/ViewBiliHelperViewModel.cs +++ b/DownKyi/ViewModels/Toolbox/ViewBiliHelperViewModel.cs @@ -124,7 +124,7 @@ namespace DownKyi.ViewModels.Toolbox { UserMid = null; - Core.Utils.Debug.Console.PrintLine("FindDanmakuSenderCommand()发生异常: {0}", e); + Core.Utils.Debugging.Console.PrintLine("FindDanmakuSenderCommand()发生异常: {0}", e); LogManager.Error(Tag, e); } }); diff --git a/DownKyi/ViewModels/ViewLoginViewModel.cs b/DownKyi/ViewModels/ViewLoginViewModel.cs index 86965d6..b0edff4 100644 --- a/DownKyi/ViewModels/ViewLoginViewModel.cs +++ b/DownKyi/ViewModels/ViewLoginViewModel.cs @@ -116,7 +116,7 @@ namespace DownKyi.ViewModels } PropertyChangeAsync(new Action(() => { LoginQRCode = LoginQR.GetLoginQRCode(loginUrl.Data.Url); })); - Core.Utils.Debug.Console.PrintLine(loginUrl.Data.Url + "\n"); + Core.Utils.Debugging.Console.PrintLine(loginUrl.Data.Url + "\n"); LogManager.Debug(Tag, loginUrl.Data.Url); GetLoginStatus(loginUrl.Data.OauthKey); @@ -135,7 +135,7 @@ namespace DownKyi.ViewModels var loginStatus = LoginQR.GetLoginStatus(oauthKey); if (loginStatus == null) { continue; } - Core.Utils.Debug.Console.PrintLine(loginStatus.Code + "\n" + loginStatus.Message + "\n" + loginStatus.Url + "\n"); + Core.Utils.Debugging.Console.PrintLine(loginStatus.Code + "\n" + loginStatus.Message + "\n" + loginStatus.Url + "\n"); switch (loginStatus.Code) { @@ -195,7 +195,7 @@ namespace DownKyi.ViewModels } catch (Exception e) { - Core.Utils.Debug.Console.PrintLine("PageLogin 保存登录信息发生异常: {0}", e); + Core.Utils.Debugging.Console.PrintLine("PageLogin 保存登录信息发生异常: {0}", e); LogManager.Error(e); eventAggregator.GetEvent().Publish(DictionaryResource.GetString("LoginFailed")); } @@ -212,7 +212,7 @@ namespace DownKyi.ViewModels // 判断是否该结束线程,若为true,跳出while循环 if (cancellationToken.IsCancellationRequested) { - Core.Utils.Debug.Console.PrintLine("停止Login线程,跳出while循环"); + Core.Utils.Debugging.Console.PrintLine("停止Login线程,跳出while循环"); LogManager.Debug(Tag, "登录操作结束"); break; } diff --git a/DownKyi/ViewModels/ViewVideoDetailViewModel.cs b/DownKyi/ViewModels/ViewVideoDetailViewModel.cs index b7d4940..2eb6d7b 100644 --- a/DownKyi/ViewModels/ViewVideoDetailViewModel.cs +++ b/DownKyi/ViewModels/ViewVideoDetailViewModel.cs @@ -196,7 +196,7 @@ namespace DownKyi.ViewModels } catch (Exception e) { - Core.Utils.Debug.Console.PrintLine("InputCommand()发生异常: {0}", e); + Core.Utils.Debugging.Console.PrintLine("InputCommand()发生异常: {0}", e); LogManager.Error(Tag, e); LoadingVisibility = Visibility.Collapsed; @@ -355,7 +355,7 @@ namespace DownKyi.ViewModels } catch (Exception e) { - Core.Utils.Debug.Console.PrintLine("ParseCommand()发生异常: {0}", e); + Core.Utils.Debugging.Console.PrintLine("ParseCommand()发生异常: {0}", e); LogManager.Error(Tag, e); LoadingVisibility = Visibility.Collapsed; @@ -462,7 +462,7 @@ namespace DownKyi.ViewModels } catch (Exception e) { - Core.Utils.Debug.Console.PrintLine("ParseCommand()发生异常: {0}", e); + Core.Utils.Debugging.Console.PrintLine("ParseCommand()发生异常: {0}", e); LogManager.Error(Tag, e); LoadingVisibility = Visibility.Collapsed;