I am trying to use Qt Creator 3.5.1 to debug a piece of software that I wrote. I noticed that while debugging my program would just stop at random points, and I accepted these problems for threading issues. However, in the end, I found out that even when I run the simplest of programs, the debugger will continue to work forever, not ending.
I work on Mac (El Capitan) with Qt 5.5.1 and Xcode 7.3.
This is my very simple test program:
#include <iostream>
int main(int argc, char *argv[])
{
std::cout << "Howdy, this is a simple test program." << std::endl;
return 0;
}
When I run this in debug mode in Qt Creator without setting any breakpoints, it just doesn't end:
Debugging starts
Howdy, this is a simple test program.
Only when I press the button stopseveral times when the debugger returns to me withDebugging has finished
" ", Python - - . , .
ERROR: Lldb stderr: Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/Users/Stan/Qt5.5.1/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py", line 765, in loop
self.handleEvent(event)
File "/Users/Stan/Qt5.5.1/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py", line 1383, in handleEvent
% self.hexencode(msg))
File "/Users/Stan/Qt5.5.1/Qt Creator.app/Contents/Resources/debugger/dumper.py", line 478, in hex encode
return s.encode("hex") eAttributeError: 'NoneType' object has no attribute 'encode'
, , , .
.