Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio debugger support #155

Open
BlueSolei opened this issue Jul 2, 2017 · 0 comments
Open

Visual Studio debugger support #155

BlueSolei opened this issue Jul 2, 2017 · 0 comments

Comments

@BlueSolei
Copy link
Contributor

BlueSolei commented Jul 2, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant