Dumpify is an open-source library for C# designed to improve the debugging process in .NET applications.
It facilitates the detailed visualization of complex data structures in console applications, through a structured, readable, and quite nice-looking dump.
This tool is especially useful for debugging when working with nested objects and collections, allowing us to inspect the state of our variables easily.
Installing Dumpify
To use Dumpify in your .NET project, you first need to add the library to your solution. This can be done using the NuGet Package Manager in Visual Studio or through the NuGet console.
Install-Package Dumpify
How to Use Dumpify
Once the library is installed, you can start using Dumpify in your project. Below are several examples demonstrating how to dump data from different structures using Dumpify.
using Dumpify;
public class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int Age { get; set; }
}
var person = new Person
{
FirstName = "John",
LastName = "Doe",
Age = 30
};
// Dump the person object
person.Dump();
Dumpify is Open Source, and all the code and documentation are available on the project page at GitHub - MoaidHathot/Dumpify.