Displays a decoded view of MsgPack data from byte arrays when debugging in Visual Studio.
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.
(Notes apply to Visual Studio 2017, but are similar for earlier versions)
-
Download the latest release, or build from source
-
Copy both
MsgPackVisualizer.dll
andDasher.dll
to either%USERPROFILE%\Documents\Visual Studio 2017\Visualizers
or
VisualStudioInstallPath\Common7\Packages\Debugger\Visualizers
-
Restart the debugging session (you don't have to restart Visual Studio)
You can target earlier versions of Visual Studio by updating the assembly references for
Microsoft.VisualStudio.DebuggerVisualizers.dll
to the relevant version.
THE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES INTENDED OR IMPLIED. USE AT YOUR OWN RISK!
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: