To properly debug complex macros in C++ I usually run the preprocessor on them in order to see exactly what the resulting code looks like.
Is there a similar way to
This is a fairly old question, but I think there has been significant improvements in this area that are not so widely known (yet).
Metashell can be used like a sort of gdb for template instantiations. This (as far as I know) builds on clang tooling.