Skip to content

Visual Studio debugger support #155

Description

@BlueSolei

I created a Visual Studio Native Visualizer file for variant.
This file enable the debugger to view the value in a variant variable.
There are two files here:

  1. Variant.natvis - the XML describe how to view the variant in VS debugger
  2. InstallVSDebuggerVariantSupport.bat - simple batch file to copy the nativs file to VS debugger folder
  3. One can also just add it to the project itself, the debugger will peek it up from there.

The natvis file support up to 20 types, if you think we need to support more, tell me and I will upload a new file.
VS Natvis format requires to explicitly describe each variant (with 1, 2, 3... types).
I use the boost::variant nativs file as a reference, and there it describe up to 20.

Enjoy :-)

VariantVSDebuggerSupoort.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions