PDA

View Full Version : Unable to debug on OSX Yosemite - XCode 6.4



oohogwash
1st July 2015, 01:30
I have installed Qt Creator 3.3.2 on OSX Yosemite which XCode 6.4 beta installed. Its saying QT Creator is built with CLang 6 (Apple) 64bit.
I have found that if I run a small C++ console app which segfault error in runtime it shuts the program down with no indication of the critical error. I would have preferred a way to see the fault and know it was a fault.

I run in debug mode, I get the following text in a dialog:
Python quit unexpectedly while using the _lldb.so plug-in. It asks to ignore report reopen etc, none of which help.
I believe the library is incompatible with Yosemite from search but have not been able to build yet due to issues with the XCode (my not knowing what to do, its a basic install that I have never used)

I want to get debugging working for obvious reasons...
Any help on getting this up and running appreciated. I dont mind reinstalling if I have selected wrong installs.

jefftee
1st July 2015, 07:02
May be related to this bug (https://bugreports.qt.io/browse/QTCREATORBUG-13702). Try unchecking the "run in terminal" option in your Qt Creator project settings and see if that does the trick. Your application stdout/stderr will be sent to the "application output" window in Qt Creator when your program is executed.

oohogwash
1st July 2015, 12:21
That checkbox is already unchecked, I tried checking it but no change.

I still wonder if there is a crash in the loading / execution of the library

jefftee
1st July 2015, 17:54
Sorry, was worth a shot. I am using OSX Yosemite and Xcode 6.4 with Qt 5.4.2/Qt Creator 3.4.1 and don't have any problems debugging.

oohogwash
2nd July 2015, 01:04
Thanks for the info, I have Qt 5.4.1, I will try to get your version and see if that helps, how did you download, ie is it community version...



Sorry, was worth a shot. I am using OSX Yosemite and Xcode 6.4 with Qt 5.4.2/Qt Creator 3.4.1 and don't have any problems debugging.

I can see two variants, one is IOS and the other is CLANG, which one did you use Jeff ?

jefftee
2nd July 2015, 01:10
I build from git source, but the comparable download should be community version CLANG.

oohogwash
2nd July 2015, 02:08
I just finished installing the CLANG variant, it all works fine now.... thanks Jeff, you have made my day.

So for the record my version did not work, installing over the top with no change to my XCode... it all works.

jefftee
2nd July 2015, 02:09
Glad to hear it's working for you now. Can't imagine not being able to debug... :)