Details
Description
when I bug my programmer in VS2017 with QT5.12 QTVSTOOL 2.5.2.1
when I inspect the loacl ** variable widget in VS2017,the data of QList<QVariant> variable is not visible. The type of QList<QVariant> is QListSpecialMethods<QVariant>.Normally,the type of QList<QVariant> should be std::atomic<int>.
I founded the an error in qt5.natvis. The error msg is "Natvis: ..\Debugger\Visualizers\qt5.natvis(399,28): Error: identifier "QVariant" is undefined
Error while evaluating 'reinterpret_cast<$T1>((sizeof($T1) > sizeof(void*)) ? reinterpret_cast<Node*>(d->array + d->begin + $i)>v : reinterpret_cast<$T1*>(d>array + d->begin + $i))' in the context of type '
Looks like the same problem as QTVSADDINBUG-498.
part of qt5.natvis file from line 391 to 405.
<Type Name="QList<*>">
<AlternativeType Name="QStringList"></AlternativeType>
<AlternativeType Name="QQueue<*>"></AlternativeType>
<DisplayString>{{ size =
}}</DisplayString>
<Expand>
<Item Name="[referenced]">d->ref.atomic._q_value</Item>
<IndexListItems>
<Size>d->end - d->begin</Size>
<ValueNode>reinterpret_cast<$T1>((sizeof($T1) > sizeof(void*))
? reinterpret_cast<Node*>(d->array + d->begin + $i)->v
: reinterpret_cast<$T1*>(d->array + d->begin + $i))
</ValueNode>
</IndexListItems>
</Expand>
</Type>
Attachments
Issue Links
- depends on
-
QTVSADDINBUG-743 Improve support of debug visualizers
-
- In Progress
-