advanced-debugger
2.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package advanced-debugger --version 2.0.3
NuGet\Install-Package advanced-debugger -Version 2.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="advanced-debugger" Version="2.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="advanced-debugger" Version="2.0.3" />
<PackageReference Include="advanced-debugger" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add advanced-debugger --version 2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: advanced-debugger, 2.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package advanced-debugger@2.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=advanced-debugger&version=2.0.3
#tool nuget:?package=advanced-debugger&version=2.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AdvancedDebugger is 100% free to use.
Initialization example
public static class DebuggerLog //String keys of log types
{
public static string Debug ⇒ "Debug";
public static string Info ⇒ "Info";
public static string InfoWarning ⇒ "InfoWarning";
public static string Warning ⇒ "Warning";
public static string Error ⇒ "Error";
}
public static class DebuggerInitializerExample { private const string DateTimeFormat = "dd-MM-yyyy HH:mm:ss.ffff";
public static void Initialize()
{
//If you want use log writing, set this to true, set logFilePath and dateTimeFormat(optional) in Initialization
Debugger.EnableLogWriting = true;
//If you want use debug colorization, set this to true, add add DebuggerColorization collection in Initialization
Debugger.EnableMarkupFormat = true;
//More arguments are optional
Debugger.Initialize(GetDebuggerLogTypes(), GetColorizations(), Debug.Log, GetLogPath(), DateTimeFormat);
}
private static List<DebuggerLogType> GetDebuggerLogTypes()
{
return new List<DebuggerLogType>()
{
new DebuggerLogType(DebuggerLog.Debug, Debug.Log, "#FFFFFF", false),
new DebuggerLogType(DebuggerLog.Info, Debug.Log, "#BDC7F0", true),
new DebuggerLogType(DebuggerLog.InfoWarning, Debug.LogWarning, "#FFFFFF", false),
new DebuggerLogType(DebuggerLog.Warning, Debug.LogWarning, "#FF5500", true),
new DebuggerLogType(DebuggerLog.Error, Debug.LogError, "#FF0000", true),
};
}
private static List<DebuggerColorization> GetColorizations()//Optional if you using EnableMarkupFormat
{
return new List<DebuggerColorization>()//When these classes use Debugger.Log their names will be colorized
{
new DebuggerColorization(nameof(TestClass1), Color.green),
new DebuggerColorization(nameof(TestClass2), Color.yellow),
new DebuggerColorization(nameof(TestClass3), Color.blue),
};
}
private static string GetLogPath()
{
return $@"{Application.persistentDataPath}/Logs/Logs.txt";
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Switch to .NET Standart 2.1