I found out that compile-time values are not that easy to see while debugging with Visual Studio.
Suppose that my program just stopped at some breakpoint in some instantiated function template .
There are expressions I want to examine
Template parameters (both type and non-type) associated with current instantiation of template
constexpr
variables (which can be dependent of template parameters)
locally declared types with using
(which also can be dependent of)
'Watch' and 'Immediate' windows don't seem to support those.
How can I examine those expressions without modifying the code?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.