Visual Studio Debugger - Natvis file


#1

I've just spent an hour and a half persuading the Visual Studio debugger to display some basic JUCE objects nicely.  It's so bloody handy I think I'd better share it.  I've done Array's, ValueTrees and Var objects so far, which were bloody annoying before.  I'm taking suggestions for any other objects that need decoding while I'm on a roll ... 

I'll pop the magic file on github in a bit...


#2

Cool, thanks for sharing!


#3

Natvis documentation is well worth a read.   It should be compatible with VS2013 and 2015...

Here's the magic file anyway, installation instructions are at the top in a comment:

https://github.com/jcredland/juce-toys/blob/master/juce.natvis


#4

This is really cool!


#5

Thank you! The first thing I thought about when seeing this feature VS feature was JUCE. I was hoping someone would make an attempt. I wanted to but I completely forgot about it. 


#6

That's great! Didn't know about that feature.


#7

more info on how to use: https://msdn.microsoft.com/en-us/library/jj620914.aspx


#8

You are a beautiful human being.


#9

Is there any way we could get Projucer to add these via the Visual Studio exporter?


#10

The JUCE team are very welcome to take over any of the code in the jcf_debug module including the natvis file and embed it in JUCE :slight_smile:


#11

Could we get this for xcode? Does xcode support doing this? It would be awesome to be able to inspect Array<>!!


#12

Yeah, I’ve done it. See juce_lldb_xcode.py


#13

I’m accepting payment in synthesisers.


#14

:joy::joy: