How to add custom Visual Studio debug view of Python object?

Viewed 540

I'd like to add a useful visualization of a Python openpyxl ReadOnlyCell object during debugging in Visual Studio 2015 (Python tools). I read into natvis files, but they seem to be only for C++ projects. For example, the screenshot below shows what a ReadOnlyCell looks like in the Autos window. I'd like to display the value property (e.g. 6000 for cell 0 below) in the column, without having to navigate into each cell individually.

There seems to be a way to add Python object visualization by editing the PythonDkm.natvis file. I have found the file, but I don't understand how to add a custom class to the it. Any help would be appreciated!

enter image description here

1 Answers
Related