How to configure the debugger for Qt creator?
-
wrote on 15 Nov 2013, 18:02 last edited by
I installed Qt 5.1.1 on Mac OS. When I enter a project, Qt Creator show: "The debugger is not set". How to configure the debugger?
Thanks in advance
-
Hi,
Did you install Xcode/Xcode command line tools ?
-
wrote on 15 Nov 2013, 22:45 last edited by
this became a bit difficult on latest Mac OS 10.9 with XCode 5.
it used to be automatic, qt, by default, would use gcc + gdb. but Mac has changed to use clang + lldb.
What you need to do is creating another Qt kit from QtCreator's preference, because the default Qt Kit doesn't allow you to change the debugger.
When selecting debugger, you need to select lldb and point the location to /Application/Xcode5.1/Content/Developer/usr/bin/lldb
-
wrote on 16 Nov 2013, 08:45 last edited by
[quote author="SGaist" date="1384551305"]
Did you install Xcode/Xcode command line tools ?[/quote]
How to install "Command line tools"?. I have in Preference -> Downloads:
!http://storage7.static.itmages.ru/i/13/1116/h_1384592821_3253687_76bb5f0c8b.png(qt)!
-
wrote on 16 Nov 2013, 09:26 last edited by
[quote author="billconan" date="1384555539"]this became a bit difficult on latest Mac OS 10.9 with XCode 5.
it used to be automatic, qt, by default, would use gcc + gdb. but Mac has changed to use clang + lldb.
What you need to do is creating another Qt kit from QtCreator's preference, because the default Qt Kit doesn't allow you to change the debugger.
When selecting debugger, you need to select lldb and point the location to /Application/Xcode5.1/Content/Developer/usr/bin/lldb[/quote]
I did so:
!http://storage9.static.itmages.ru/i/13/1116/h_1384593898_7796986_46f24c62ac.png(qt)!
It does not works.
-
wrote on 16 Nov 2013, 11:41 last edited by
Hi,
You can install the command line tools with:
@
xcode-select --install
@However, I think you won't have much luck with debugging in Qt 5.1. Use Qt 5.2 Beta which supports LLDB. See also this post:
"http://qt-project.org/forums/viewthread/34533/":http://qt-project.org/forums/viewthread/34533/ -
wrote on 16 Nov 2013, 15:55 last edited by
I installed Qt 5.2. Now works! Thanks
[quote author="panosk" date="1384602089"]Hi,You can install the command line tools with:
@
xcode-select --install
@However, I think you won't have much luck with debugging in Qt 5.1. Use Qt 5.2 Beta which supports LLDB. See also this post:
"http://qt-project.org/forums/viewthread/34533/":http://qt-project.org/forums/viewthread/34533/[/quote]
1/7