[Qt-creator] OS X Debugger (LLDB) Not showing number of items in containers
imikejackson at gmail.com
Tue Feb 18 16:04:24 CET 2014
On Feb 18, 2014, at 5:16 AM, Poenitz Andre <Andre.Poenitz at digia.com> wrote:
> Michael Jackson [imikejackson at gmail.com] wrote:
>> int main(int argc, char *argv)
>> QVector<size_t> dims(1, 3);
>> qDebug() << dims; <== Breakpoint here
>> return 0;
>> The above problem reproduces the issue that I am having.
>> I am on OS X 10.8.5 with a self built Qt 4.8.5. I have Xcode 4.6.3
>> installed. I have set the Debugger to use lldb. When I step through the
>> above program and stop at the line marked above the debugger says
>> that the "dims" variable has "0" items.
> This might depend on the actual version of LLDB/Clang/gcc
> I see <1 items> (and it's expandable with subitem  showing "3") with
> LLDB 300.2.47, and 179.6 (which came with Xcode 4.6.3) I think.
> Which LLDB version and compiler are you using exactly?
> Maybe you can put a complete log (right hand side of Windows->Views
> ->Debugger Log) on bugreports.qt-project.org?
501:[mjackson at Ferb:~]$ which lldb
502:[mjackson at Ferb:~]$ lldb --version
503:[mjackson at Ferb:~]$ /Applications/Xcode.app/Contents/Developer/usr/bin/lldb --version
504:[mjackson at Ferb:~]$ clang --version
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Thread model: posix
508:[mjackson at Ferb:~]$ which gcc
509:[mjackson at Ferb:~]$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
What OS X Version are you using?
More information about the Qt-creator