1 |
On 24/03/15 21:12, Fernando Rodriguez wrote: |
2 |
> On Tuesday, March 24, 2015 10:07:56 AM Francisco Ares wrote: |
3 |
>> Hi, |
4 |
>> |
5 |
>> Recently - but can't figure out exactly when - Qt Creator has become unable |
6 |
>> to access Qt containers (where the STL ones work as expected) on the debug |
7 |
>> panel. It shows <not accessible> in place of the expected item quantity |
8 |
>> for a QList, for instance, but for a std::vector<std::string>, it works, |
9 |
>> allowing inspection of all items. |
10 |
>> |
11 |
>> Any hints on what I may be doing wrong? The headers are all accessible, for |
12 |
>> instance. Should I build Qt with debug symbols enabled, as recommended for |
13 |
>> glibc? |
14 |
>> |
15 |
>> Using current Qt 4.8.5, Qt Creator 2.8.1, gdb 7.7.1, gcc 4.8.3 |
16 |
>> |
17 |
>> Thanks! |
18 |
>> Francisco |
19 |
> |
20 |
> Try to print it from gdb cli, if it works you'll know the issue QtCreator, |
21 |
> otherwise you're likely missing some symbols. You should always compile any |
22 |
> development libraries with debug symbols. |
23 |
|
24 |
You don't need debug symbols for inspecting containers. They are not |
25 |
needed. The only reason for enabling debug symbols in Qt is if you want |
26 |
to step into Qt's code. |