Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.6.0
Description
Steps to reproduce the issue:
1. Create minimal Qt project
2. Under Projects tab set it to be "Run in Terminal"
3. Start debugging
-> Application window doesn't become visible before stopping the debugging
Debugger log:
sStarting debugger "LldbEngine" for ABI "x86-macos-generic-mach_o-64bit"... dStart parameters: 'untitled3' mode: 1 dABI: x86-macos-generic-mach_o-64bit dLanguages: c++ dExecutable: /Users/kileppal/build-untitled3-Desktop_Qt_5_5_1_clang_64bit-Debug/untitled3.app/Contents/MacOS/untitled3 [terminal] dDirectory: /Users/kileppal/build-untitled3-Desktop_Qt_5_5_1_clang_64bit-Debug/untitled3.app/Contents/MacOS dDebugger: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb dProject: /Users/kileppal/untitled3Addtional Search Directories: dRemote: :0 dSysroot: dDebug Source Location: dDebugger settings: dBreakOnAbort: false (default: false) dShowQmlObjectTree: true (default: true) dQmlInspector.ShowAppOnTop: false (default: false) dAutoQuit: false (default: false) dLogTimeStamps: false (default: false) dVerboseLog: false (default: false) dUseAlternatingRowColours: false (default: false) dFontSizeFollowsEditor: false (default: false) dUseMessageBoxForSignals: true (default: true) dSwitchModeOnExit: false (default: false) dBreakpointsFullPath: true (default: false) *** dRaiseOnInterrupt: true (default: true) dStationaryEditorWhileStepping: false (default: false) dCloseBuffersOnExit: false (default: false) dCloseMemoryBuffersOnExit: true (default: true) dUseToolTipsInLocalsView: false (default: false) dUseToolTipsInBreakpointsView: true (default: false) *** dUseToolTipsInBreakpointsView: true (default: true) dUseAddressInBreakpointsView: false (default: false) dUseDebuggingHelper: true (default: true) dUseCodeModel: true (default: true) dShowThreadNames: false (default: false) dUseToolTips: true (default: true) dGdbCustomDumperCommands: (default: ) dAdditionalArguments: (default: ) dSymbolPaths: (default: ) dSourcePaths: (default: ) dUseAddressInStackView: false (default: false) dAlwaysAdjustColumnWidths: true (default: true) dExtraDumperFile: (default: ) dIgnoreFirstChanceAccessViolation: false (default: false) dLoadGdbInit: true (default: true) dLoadGdbDumpers2: false (default: false) dAttemptQuickStart: false (default: false) dBreakEvent: (default: ) dBreakOnCrtDbgReport: false (default: false) dCDB_Console: false (default: false) dBreakpointCorrection: true (default: true) dUseDynamicType: true (default: true) dTargetAsync: false (default: false) dWarnOnReleaseBuilds: true (default: true) dMultiInferior: false (default: false) dGdbStartupCommands: (default: ) dGdbPostAttachCommands: (default: ) dWatchdogTimeout: 20 (default: 20) dAutoEnrichParameters: true (default: true) dShowStandardNamespace: true (default: true) dShowQtNamespace: true (default: true) dSortStructMembers: true (default: true) dIntelFlavor: false (default: false) dIdentifyDebugInfoPackages: false (default: false) dMaximalStackDepth: 20 (default: 20) dSkipKnownFrames: false (default: false) dEnableReverseDebugging: false (default: false) dAllPluginBreakpoints: true (default: true) dAutoDerefPointers: true (default: true) dMaximalStringLength: 10000 (default: 10000) dDisplayStringLimit: 100 (default: 100) dListSourceFiles: false (default: false) dBreakOnThrow: false (default: false) dBreakOnCatch: false (default: false) dBreakOnWarning: false (default: false) dBreakOnFatal: false (default: false) dSelectedPluginBreakpoints: false (default: false) dAdjustBreakpointLocations: true (default: true) dNoPluginBreakpoints: false (default: false) dSelectedPluginBreakpointsPattern: .* (default: .*) dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master] dQUEUE: SETUP ENGINE dCALL: SETUP ENGINE dTRYING TO START ADAPTER dSTARTING LLDB: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb d(lldb) sc print('@\nlldbstartupok@\n') d@ dlldbstartupok@ d dADAPTER STARTED sSetting up inferior... d(lldb) script sys.path.insert(1, '/Users/kileppal/Development/prebuilt/Qt_online/Qt Creator.app/Contents/Resources/debugger/') d(lldb) script from lldbbridge import * d(lldb) script print(dir()) d['Array10000Format', 'Array1000Format', 'Array100Format', 'Array10Format', 'ArrayPlotFormat', 'AttachCore', 'AttachCrashedExternal', 'AttachExternal', 'AttachToRemoteProcess', 'AttachToRemoteServer', 'AutomaticFormat', 'Base64Encoded16Bit', 'Base64Encoded16BitWithQuotes', 'Base64Encoded32BitWithQuotes', 'Base64Encoded8Bit', 'Base64Encoded8BitWithQuotes', 'Blob', 'BreakpointAtCatch', 'BreakpointAtExec', 'BreakpointAtFork', 'BreakpointAtJavaScriptThrow', 'BreakpointAtMain', 'BreakpointAtSysCall', 'BreakpointAtThrow', 'BreakpointByAddress', 'BreakpointByFileAndLine', 'BreakpointByFunction', 'BreakpointOnQmlSignalEmit', 'Children', 'CompactMapFormat', 'DateTimeInternal', 'DirectQListStorageFormat', 'DisplayImageData', 'DisplayImageFile', 'DisplayLatin1String', 'DisplayPlotData', 'DisplayUtf16String', 'DisplayUtf8String', 'Dumper', 'DumperBase', 'EnhancedFormat', 'Hex2EncodedFloat4', 'Hex2EncodedFloat8', 'Hex2EncodedInt1', 'Hex2EncodedInt2', 'Hex2EncodedInt4', 'Hex2EncodedInt8', 'Hex2EncodedLatin1', 'Hex2EncodedLocal8Bit', 'Hex2EncodedUInt1', 'Hex2EncodedUInt2', 'Hex2EncodedUInt4', 'Hex2EncodedUInt8', 'Hex2EncodedUtf8', 'Hex2EncodedUtf8WithoutQuotes', 'Hex4EncodedBigEndian', 'Hex4EncodedLittleEndian', 'Hex4EncodedLittleEndianWithoutQuotes', 'Hex8EncodedBigEndian', 'Hex8EncodedLittleEndian', 'IPv6AddressAndHexScopeId', 'IndirectQListStorageFormat', 'JulianDate', 'JulianDateAndMillisecondsSinceMidnight', 'Latin1StringFormat', 'Local8BitStringFormat', 'MillisecondsSinceMidnight', 'NoAddress', 'NoStartMode', 'PairedChildren', 'PairedChildrenData', 'RawFormat', 'ReportItem', 'SeparateFormat', 'SeparateLatin1StringFormat', 'SeparateUtf8StringFormat', 'SimpleFormat', 'SpecialEmptyStructureValue', 'SpecialEmptyValue', 'SpecialInvalidValue', 'SpecialItemCountValue', 'SpecialMinimumItemCountValue', 'SpecialNotAccessibleValue', 'SpecialNotCallableValue', 'SpecialNullReferenceValue', 'SpecialOptimizedOutValue', 'SpecialUninitializedValue', 'StartExternal', 'StartInternal', 'StartRemoteProcess', 'StopDisplay', 'SubItem', 'Tester', 'TopLevelItem', 'Ucs4StringFormat', 'Unencoded8Bit', 'UnknownType', 'UnnamedSubItem', 'Utf16StringFormat', 'Utf8StringFormat', 'Value', 'WatchpointAtAddress', 'WatchpointAtExpression', '__builtins__', 'arrayForms', 'base64', 'check', 'copy', 'fileName', 'impl_SBValue__add__', 'impl_SBValue__deref', 'impl_SBValue__float__', 'impl_SBValue__getitem__', 'impl_SBValue__int__', 'impl_SBValue__le__', 'impl_SBValue__long__', 'impl_SBValue__sub__', 'inspect', 'keyword', 'lldb', 'mapForms', 'os', 'platform', 'pydoc', 'qqWatchpointOffset', 're', 'run_one_line', 'run_python_interpreter', 'showException', 'struct', 'sys', 'threading', 'time', 'toInteger', 'uuid', 'verbosity', 'warn'] d(lldb) script theDumper = Dumper() d@ dlldbversion="lldb-340.4.119"@ d@ dstate="enginesetupok"@ dNOTE: ENGINE SETUP OK dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master] dQUEUE: SETUP INFERIOR dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master] dQUEUE: SETUP INFERIOR dCALL: SETUP INFERIOR <49executeDebuggerCommand({"command":"settings set target.env-vars PATH=/Users/kileppal/Development/prebuilt/Qt_online/5.5/clang_64/bin:/usr/bin:/bin:/usr/sbin:/sbin","token":49,}) <50executeDebuggerCommand({"command":"settings set target.env-vars QTDIR=/Users/kileppal/Development/prebuilt/Qt_online/5.5/clang_64","token":50,}) <51loadDumpers({"token":51,}) d(lldb) script theDumper.executeDebuggerCommand({"command":"settings set target.env-vars PATH=/Users/kileppal/Development/prebuilt/Qt_online/5.5/clang_64/bin:/usr/bin:/bin:/usr/sbin:/sbin","token":49,}) d@ dsuccess="1",output="",error=""@ d(lldb) script theDumper.executeDebuggerCommand({"command":"settings set target.env-vars QTDIR=/Users/kileppal/Development/prebuilt/Qt_online/5.5/clang_64","token":50,}) d@ dsuccess="1",output="",error=""@ d(lldb) script theDumper.loadDumpers({"token":51,}) d@ dtoken("51")@ d@ ddumpers=[{type="std____debug__unordered_set"},{type="CPlusPlus__Identifier"},{type="std__stack"},{type="std__multimap",formats="17"},{type="std____debug__deque"},{type="boost__optional"},{type="QDir"},{type="QSharedData"},{type="Debugger__Internal__GdbMi"},{type="boost__container__list"},{type="Utils__FileName"},{type="std__deque"},{type="QFixed"},{type="uint8_t"},{type="std____debug__stack"},{type="QPoint"},{type="std____1__vector"},{type="QMultiMap",formats="17"},{type="QModelIndex",formats="2, 3"},{type="QLocale"},{type="QV4__CallContext"},{type="QJsonPrivate__q_littleendian"},{type="string",editable="true"},{type="std__set"},{type="std__unique_ptr"},{type="QFile"},{type="wstring"},{type="QByteArrayData"},{type="QSizeF"},{type="QIPv6Address"},{type="Debugger__Internal__ThreadId"},{type="Utils__ElfSection"},{type="QGraphicsPolygonItem"},{type="std__wstring",formats="2, 4"},{type="Debugger__Internal__DisassemblerLine"},{type="QTimeZone"},{type="QMap",formats="17"},{type="boost__posix_time__time_duration"},{type="std__deque__QNX"},{type="QChar"},{type="CPlusPlus__TemplateNameId"},{type="QQmlRefCount"},{type="std____debug__set"},{type="QMetaObject"},{type="QHostAddress"},{type="QV4__Value"},{type="QJsonPrivate__qle_bitfield"},{type="std__map__QNX"},{type="QPixmap"},{type="QJsonValue"},{type="std____1__shared_ptr"},{type="QV4__SimpleScriptFunction"},{type="CPlusPlus__Internal__Value"},{type="QFileInfo"},{type="QHash__const_iterator"},{type="std____1__string"},{type="Debugger__Internal__WatchData"},{type="QTime"},{type="QPolygonF"},{type="QXmlStreamStringRef"},{type="CPlusPlus__PointerType"},{type="std___Rb_tree_const_iterator"},{type="QString",editable="true",formats="2, 4"},{type="boost__bimaps__bimap"},{type="QV4__TypedValue"},{type="std____cxx1998__map"},{type="QHash",formats="17"},{type="QXmlAttributes"},{type="QHash__iterator"},{type="QV4__CallData"},{type="QLinkedList"},{type="QStack",formats="16"},{type="CPlusPlus__Token"},{type="std__list__QNX"},{type="Debugger__Internal__BreakpointModelId"},{type="boost__unordered__unordered_set"},{type="KDSoapValue1"},{type="std____1__basic_string"},{type="std__set__const_iterator"},{type="std____1__unique_ptr"},{type="std__stringHelper1"},{type="std__map__iterator"},{type="QDate"},{type="std__multiset"},{type="std__unordered_map",formats="17"},{type="__m128"},{type="__m128d"},{type="QTextCodec"},{type="std__shared_ptr"},{type="Debugger__Internal__WatchItem"},{type="std__unordered_set"},{type="QMetaObjectPrivate"},{type="QHashedString"},{type="__m512d"},{type="std____cxx1998__set"},{type="std__string",editable="true",formats="5, 6, 7, 8"},{type="__m256"},{type="std__map",formats="17"},{type="boost__posix_time__ptime"},{type="QPointF"},{type="Eigen__Matrix"},{type="QImage",formats="2, 4"},{type="QSet"},{type="std__map__const_iterator"},{type="QJsonArray"},{type="CPlusPlus__QualifiedNameId"},{type="QAbstractItemModel",formats="2, 3"},{type="QFiniteStack",formats="16"},{type="std__set__iterator"},{type="QTextDocument"},{type="QTJSC__JSValue"},{type="__gnu_cxx__hash_set"},{type="QRegion"},{type="std__array",formats="16"},{type="std____1__unordered_set"},{type="QBasicAtomicInt"},{type="QScriptValue"},{type="QDateTime"},{type="boost__gregorian__date"},{type="std__set__QNX"},{type="CPlusPlus__ByteArrayRef"},{type="boost__shared_ptr"},{type="Core__Id"},{type="std__basic_string"},{type="std____debug__vector",formats="16"},{type="QRectF"},{type="QAtomicInt"},{type="__m256i"},{type="__m256d"},{type="std____1__set"},{type="QXmlStreamAttribute"},{type="int8_t"},{type="std__stringHelper1__QNX"},{type="CPlusPlus__StringLiteral"},{type="QQmlAccessorProperties__Properties"},{type="QByteArray",formats="5, 6, 7, 8"},{type="QV4__ExecutionContext"},{type="CPlusPlus__Class"},{type="std__vector",editable="true",formats="16"},{type="QV4__FunctionObject"},{type="std____1__unordered_map",formats="17"},{type="ProString"},{type="__m512i"},{type="__m128i"},{type="QVariantMap",formats="17"},{type="QStringRef"},{type="std____debug__map"},{type="std__list"},{type="std____debug__list"},{type="QUuid"},{type="QVariant (QVariantMap)",formats="17"},{type="QSize"},{type="QPolygon"},{type="QSharedDataPointer"},{type="QStringList"},{type="std___Rb_tree_iterator"},{type="std__complex"},{type="QRegExp"},{type="QTextCursor"},{type="QFlags"},{type="QStringData"},{type="std____debug__unordered_map",formats="17"},{type="QList",formats="18, 19"},{type="QJsonPrivate__qle_signedbitfield"},{type="QSharedPointer"},{type="QUrl",formats="2, 4"},{type="CPlusPlus__Symbol"},{type="QVarLengthArray"},{type="QV4__Object"},{type="QScopedPointer"},{type="__m512"},{type="QStandardItem"},{type="CPlusPlus__Literal"},{type="QMapNode"},{type="std____1__array",formats="16"},{type="QVariant"},{type="QV4__String"},{type="QVector",editable="true",formats="16"},{type="std____1__wstring"},{type="QHashNode",formats="17"},{type="QV4__CompilationUnit"},{type="QTemporaryFile"},{type="KDSoapValue"},{type="QJsonObject"},{type="QRect"},{type="CPlusPlus__IntegerType"},{type="std__vector__QNX"},{type="CPlusPlus__FullySpecifiedType"},{type="__gnu_debug___Safe_iterator"},{type="QV4__ScriptFunction"},{type="CPlusPlus__Internal__PPToken"},{type="QWeakPointer"},{type="QAtomicPointer"},{type="CPlusPlus__NamedType"},]@ Attaching to 10129 <52setupInferior({"executable":"/Users/kileppal/build-untitled3-Desktop_Qt_5_5_1_clang_64bit-Debug/untitled3.app/Contents/MacOS/untitled3","breakOnMain":0,"useTerminal":1,"startMode":1,"bkpts":[],"processArgs":[],"attachPid":10129,"token":52,}) d(lldb) script theDumper.setupInferior({"executable":"/Users/kileppal/build-untitled3-Desktop_Qt_5_5_1_clang_64bit-Debug/untitled3.app/Contents/MacOS/untitled3","breakOnMain":0,"useTerminal":1,"startMode":1,"bkpts":[],"processArgs":[],"attachPid":10129,"token":52,}) d@ dtoken("52")@ d@ dstate="inferiorsetupok",msg="success",exe="/Users/kileppal/build-untitled3-Desktop_Qt_5_5_1_clang_64bit-Debug/untitled3.app/Contents/MacOS/untitled3"@ dNOTE: INFERIOR SETUP OK dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6) [master] dState changed from InferiorSetupOk(6) to EngineRunRequested(7) [master] dQUEUE: RUN ENGINE dCALL: RUN ENGINE sRunning requested... <53runEngine({"token":53,}) d(lldb) script theDumper.runEngine({"token":53,}) d@ dtoken("53")@ d@ dpid="10129"@ d@ dstate="enginerunandinferiorrunok"@ dNOTE: ENGINE RUN AND INFERIOR RUN OK sRunning. dState changed from EngineRunRequested(7) to InferiorRunOk(11) [master]
Attachments
Issue Links
- relates to
-
QTCREATORBUG-16364 LLDB does not work with Run in Terminal
- Closed
- replaces
-
QTCREATORBUG-16014 Debug doesn't work for console app in Mac
- Closed