Open zhihaoy opened 5 years ago
@zhihaoy Is this referring to .natvis?
Yes, a Natvis feature is missing in MIEngine.
Do you have a sample natvis and project I can use to verify the fix?
The natvis I will show later works in cppvsdbg
, but not cppdbg
on Linux. The problem is here https://github.com/lichray/oneof/tree/cppvsdbg , please checkout the cppvcdbg branch, which has a sample launch.js already (please update paths if needed. If you break on the stdex::oneof
line in VScode debugger on Windows with MSVC, initially it shows nothing, step to the next line, you will see
But in Linux (after switching to cppdbg
in launch.js and the paths), you don't see the debugger visualization at the same step.
Expansion in such a form
only works in cppvsdbg.
$T1
is a type template parameter (rather than a non-type template parameter) and the full expansion should be treated as a cast. The expression does evaluate correctly in evaluator.