advanced-debugger 2.0.4

dotnet add package advanced-debugger --version 2.0.4
                    
NuGet\Install-Package advanced-debugger -Version 2.0.4
                    
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.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="advanced-debugger" Version="2.0.4" />
                    
Directory.Packages.props
<PackageReference Include="advanced-debugger" />
                    
Project file
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.4
                    
#r "nuget: advanced-debugger, 2.0.4"
                    
#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.4
                    
#: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.4
                    
Install as a Cake Addin
#tool nuget:?package=advanced-debugger&version=2.0.4
                    
Install as a Cake Tool

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 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.

Version Downloads Last Updated
2.0.4 292 8/18/2023
2.0.3 222 8/17/2023
1.0.2 238 8/14/2023
1.0.1 217 8/14/2023
1.0.0 222 8/14/2023

Switch to .NET Standart 2.1