The information in both comments from @uglycoyote and @rohat helped me start debugging my (small) project comfortably after realizing I could just use the DEBUG
macro to add members to my class, initialize them conditionally, and reference them from my natvis file instead of wasting time reimplementing existing functions in XML.
For more complex things, one should really refer to the documentation and large examples like stl.natvis itself.