QList with nested types does not display properly in VS debugger

QList<foo>displayed correctly in the debugger, however, the nested type structure is QList<foo::bar>not.

For example, for this code:

struct foo { struct bar { int var; }; };
struct bar { int var; };
...
QList<foo::bar> list1;
QList<bar> list2;
...

This will display the debugger:

enter image description here

Note: I already had to edit autoexp.dat to show QVector correctly, because there seems to be an error in adding QT for VS, which did not configure them correctly for Qt5.

So, is there a way to fix this (by editing autoexp.dat / something else)?

+4
source share
1 answer

Go to Visual Studio 2010, this will fix your problem:

enter image description here

0
source

Source: https://habr.com/ru/post/1539769/


All Articles