diff --git a/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs b/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs
index a493365b0d..559a06518d 100644
--- a/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs
+++ b/Plugins/Wox.Plugin.Program/FileChangeWatcher.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.Diagnostics;
using System.IO;
using System.Threading;
using Wox.Infrastructure;
@@ -15,7 +16,7 @@ namespace Wox.Plugin.Program
if (watchedPath.Contains(path)) return;
if (!Directory.Exists(path))
{
- DebugHelper.WriteLine(string.Format("FileChangeWatcher: {0} doesn't exist", path));
+ Debug.WriteLine(string.Format("FileChangeWatcher: {0} doesn't exist", path));
return;
}
diff --git a/Plugins/Wox.Plugin.Program/Programs.cs b/Plugins/Wox.Plugin.Program/Programs.cs
index 1b1ee94485..87b2aeeeed 100644
--- a/Plugins/Wox.Plugin.Program/Programs.cs
+++ b/Plugins/Wox.Plugin.Program/Programs.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
@@ -74,7 +75,7 @@ namespace Wox.Plugin.Program
{
programs = ProgramCacheStorage.Instance.Programs;
}
- DebugHelper.WriteLine(string.Format("Preload {0} programs from cache", programs.Count));
+ Debug.WriteLine(string.Format("Preload {0} programs from cache", programs.Count));
using (new Timeit("Program Index"))
{
IndexPrograms();
diff --git a/Wox.Core/Plugin/PluginManager.cs b/Wox.Core/Plugin/PluginManager.cs
index a8a9ddf463..cd5a0ca20f 100644
--- a/Wox.Core/Plugin/PluginManager.cs
+++ b/Wox.Core/Plugin/PluginManager.cs
@@ -99,7 +99,7 @@ namespace Wox.Core.Plugin
API = API
});
sw.Stop();
- DebugHelper.WriteLine(string.Format("Plugin init:{0} - {1}", pair.Metadata.Name, sw.ElapsedMilliseconds));
+ Debug.WriteLine(string.Format("Plugin init:{0} - {1}", pair.Metadata.Name, sw.ElapsedMilliseconds));
pair.InitTime = sw.ElapsedMilliseconds;
InternationalizationManager.Instance.UpdatePluginMetadataTranslations(pair);
});
@@ -196,7 +196,7 @@ namespace Wox.Core.Plugin
o.PluginID = pair.Metadata.ID;
});
sw.Stop();
- DebugHelper.WriteLine(string.Format("Plugin query: {0} - {1}", pair.Metadata.Name, sw.ElapsedMilliseconds));
+ Debug.WriteLine(string.Format("Plugin query: {0} - {1}", pair.Metadata.Name, sw.ElapsedMilliseconds));
pair.QueryCount += 1;
if (pair.QueryCount == 1)
{
diff --git a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs
index 35bf8bbac2..aeb886536a 100644
--- a/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs
+++ b/Wox.Core/Plugin/QueryDispatcher/BaseQueryDispatcher.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.Diagnostics;
using System.Linq;
using System.Threading;
using Wox.Core.UserSettings;
@@ -24,7 +25,7 @@ namespace Wox.Core.Plugin.QueryDispatcher
PluginPair localPair = pair;
if (query.IsIntantQuery && PluginManager.IsInstantSearchPlugin(pair.Metadata))
{
- DebugHelper.WriteLine(string.Format("Plugin {0} is executing instant search.", pair.Metadata.Name));
+ Debug.WriteLine(string.Format("Plugin {0} is executing instant search.", pair.Metadata.Name));
using (new Timeit(" => instant search took: "))
{
PluginManager.ExecutePluginQuery(localPair, query);
diff --git a/Wox.Infrastructure/DebugHelper.cs b/Wox.Infrastructure/DebugHelper.cs
deleted file mode 100644
index 447071abf1..0000000000
--- a/Wox.Infrastructure/DebugHelper.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.Diagnostics;
-
-namespace Wox.Infrastructure
-{
- public static class DebugHelper
- {
- public static void WriteLine(string msg)
- {
- return;
- Debug.WriteLine(msg);
- }
- }
-}
diff --git a/Wox.Infrastructure/Timeit.cs b/Wox.Infrastructure/Timeit.cs
index 89a8dbbddc..7a857bee4b 100644
--- a/Wox.Infrastructure/Timeit.cs
+++ b/Wox.Infrastructure/Timeit.cs
@@ -17,7 +17,7 @@ namespace Wox.Infrastructure
public void Dispose()
{
stopwatch.Stop();
- DebugHelper.WriteLine(name + ":" + stopwatch.ElapsedMilliseconds + "ms");
+ Debug.WriteLine(name + ":" + stopwatch.ElapsedMilliseconds + "ms");
}
}
}
diff --git a/Wox.Infrastructure/Wox.Infrastructure.csproj b/Wox.Infrastructure/Wox.Infrastructure.csproj
index 7d5db6eeb5..3c10409c02 100644
--- a/Wox.Infrastructure/Wox.Infrastructure.csproj
+++ b/Wox.Infrastructure/Wox.Infrastructure.csproj
@@ -49,7 +49,6 @@
-
diff --git a/Wox/ImageLoader/ImageLoader.cs b/Wox/ImageLoader/ImageLoader.cs
index 8fa9f9c5d8..62924c1710 100644
--- a/Wox/ImageLoader/ImageLoader.cs
+++ b/Wox/ImageLoader/ImageLoader.cs
@@ -122,7 +122,7 @@ namespace Wox.ImageLoader
}
sw.Stop();
- DebugHelper.WriteLine(string.Format("Loading image path: {0} - {1}ms",path,sw.ElapsedMilliseconds));
+ Debug.WriteLine(string.Format("Loading image path: {0} - {1}ms",path,sw.ElapsedMilliseconds));
return img;
}
diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs
index bfb09795c7..f87277bbbe 100644
--- a/Wox/MainWindow.xaml.cs
+++ b/Wox/MainWindow.xaml.cs
@@ -491,11 +491,11 @@ namespace Wox
{
if (!string.IsNullOrEmpty(query) && PluginManager.IsInstantQuery(query))
{
- DebugHelper.WriteLine("execute query without delay");
+ Debug.WriteLine("execute query without delay");
return 0;
}
- DebugHelper.WriteLine("execute query with 200ms delay");
+ Debug.WriteLine("execute query with 200ms delay");
return 200;
}