I am debugging some C++ code which contains some C++ templates with T as an template argument. I would like to see in watch (or on mouse over) what type is T.
When I add T to watch, it does not show the type. Is there a way to resolve T argument in debugger?
I can see the template arguments types on call stack. As the types are quite complex, the lines in the he call stack is so long, that cannot fit my display. And very hard to read.
Is there a way to resolve T argument in debugger watch?
I use Visual Studio 2015 Update 3.
Add _First
or _Last
to the watch widow, they are of type _Iter
, and the resolved type will be displayed. I don't think there is any other way: at compile time _Iter is replaced by whatever type is used, so once the application is built there's no notice of the name _Iter anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With