Skip to content

Visual Studio Debugger Visualizer for MsgPack encoded byte arrays

Notifications You must be signed in to change notification settings

drewnoakes/msgpack-vs-visualiser-dotnet

Repository files navigation

MsgPack Debugger Visualizer for Visual Studio

Displays a decoded view of MsgPack data from byte arrays when debugging in Visual Studio.

Usage

When paused in the debugger, select an instance of byte[] and launch a visualiser:

Selecting "MsgPack Visualizer" pops up a window showing the decoded MsgPack data.

This window is modal and debugging may only continue once the window is closed.

Installation

(Notes apply to Visual Studio 2017, but are similar for earlier versions)

  1. Download the latest release, or build from source

  2. Copy both MsgPackVisualizer.dll and Dasher.dll to either

    %USERPROFILE%\Documents\Visual Studio 2017\Visualizers

    or

    VisualStudioInstallPath\Common7\Packages\Debugger\Visualizers

  3. Restart the debugging session (you don't have to restart Visual Studio)

Earlier Visual Studio Versions

You can target earlier versions of Visual Studio by updating the assembly references for Microsoft.VisualStudio.DebuggerVisualizers.dll to the relevant version.

License

THE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES INTENDED OR IMPLIED. USE AT YOUR OWN RISK!

Links

This project uses Dasher for fast MsgPack packing and unpacking:

Check out Plast's similar VS Debugger Visualiser for native debugging:

Read more about creating Visual Studio visualisers: