The Debugger Visualizer installer can be downloaded from the Visual Studio Gallery.
The visualizer has both Light and Dark themes:
...and output can be customised using various options:
ASP.NET Core 5 Known Issue
.NET 5 had a breaking change, which disables
BinaryFormatter serialization by default.
This has caused issues with the ReadableExpressions visualizers (and elsewhere)
when debugging ASP.NET Core apps as the VS debugger uses
to serialize objects before sending them to the visualizer.
The solution is to enable the
BinaryFormatter in Debug only by adding the following to your ASP.NET Core csproj:
<PropertyGroup> <TargetFramework>net5.0</TargetFramework> <EnableUnsafeBinaryFormatterSerialization Condition=" '$(Configuration)' == 'Debug' "> true </EnableUnsafeBinaryFormatterSerialization> </PropertyGroup>
PM> Install-Package AgileObjects.ReadableExpressions
To translate an Expression, use:
using AgileObjects.ReadableExpressions; string readable = myExpression.ToReadableString();
...this also works on DynamicLanguageRuntime expressions.
For details of the other available extension methods, see here.