- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
  Not Evaluated                     
     - 
    None
 - 
    Qt Creator 4.4.0-beta1
 - 
    None
 
- Open a project
 - Debug > Start Debugging > Start and Debug External Application
 
This will start the wrong application. It appears that the debugger engine uses the settings from the project (even if there aren't any) instead of using what came from the dialog.
The settings in the screenshot were to:
- Run /tmp/a.out
 - In directory /tmp
 - With a terminal
 
Instead, Qt Creator tried to:
- Run "" (no executable)
 - In directory /home/tjmaciei/obj/qt/qt5/qtbase/src/corelib (current project's build dir)
 - Without a terminal
 
Debugger log:
Starting debugger "" for ABI "x86-linux-generic-elf-64bit"...
dStart parameters: 'a.out  (qt5)' mode: 2
dABI: x86-linux-generic-elf-64bit
dLanguages: c++ 
dDebugger: /usr/bin/gdb
dProject: /home/tjmaciei/src/qt/qt5/qtbase/src/corelibAddtional Search Directories:
dRemote: :1
dSysroot: 
dDebug Source Location: 
dDebugger settings: 
dQmlInspector.ShowAppOnTop: false  (default: false)
dBreakOnThrow: false  (default: false)
dBreakOnCatch: false  (default: false)
dNoPluginBreakpoints: false  (default: false)
dSelectedPluginBreakpointsPattern: .*  (default: .*)
dBreakOnAbort: true  (default: false)  ***
dShowQmlObjectTree: true  (default: true)
dBreakOnWarning: false  (default: false)
dBreakOnFatal: true  (default: false)  ***
dSkipKnownFrames: false  (default: false)
dEnableReverseDebugging: false  (default: false)
dMaximalStringLength: 10000  (default: 10000)
dDisplayStringLimit: 100  (default: 100)
dSelectedPluginBreakpoints: false  (default: false)
dAdjustBreakpointLocations: true  (default: true)
dAllPluginBreakpoints: true  (default: true)
dShowStandardNamespace: true  (default: true)
dMaximalStackDepth: 20  (default: 20)
dSortStructMembers: true  (default: true)
dAutoDerefPointers: true  (default: true)
dShowQtNamespace: true  (default: true)
dShowQObjectNames2: true  (default: true)
dUseDynamicType: true  (default: true)
dTargetAsync: false  (default: false)
dWatchdogTimeout: 20  (default: 20)
dAutoEnrichParameters: true  (default: true)
dIntelFlavor: false  (default: false)
dIdentifyDebugInfoPackages: false  (default: false)
dWarnOnReleaseBuilds: true  (default: true)
dMultiInferior: false  (default: false)
dUsePythonDumper: true  (default: true)
dIgnoreFirstChanceAccessViolation: false  (default: false)
dCDB_Console: false  (default: false)
dBreakpointCorrection: true  (default: true)
dGdbStartupCommands:   (default: )
dGdbPostAttachCommands:   (default: )
dLoadGdbInit: true  (default: true)
dLoadGdbDumpers2: false  (default: false)
dGdbCustomDumperCommands:   (default: )
dAdditionalArguments:   (default: )
dAlwaysAdjustColumnWidths: true  (default: true)
dExtraDumperFile:   (default: )
dBreakEvent:   (default: )
dBreakOnCrtDbgReport: false  (default: false)
dSymbolPaths:   (default: )
dSourcePaths:   (default: )
dUseToolTipsInLocalsView: false  (default: false)
dUseToolTipsInBreakpointsView: true  (default: false)  ***
dShowThreadNames: true  (default: false)  ***
dUseToolTips: true  (default: true)
dUseAddressInStackView: false  (default: false)
dUseToolTipsInBreakpointsView: true  (default: true)
dUseAddressInBreakpointsView: false  (default: false)
dSwitchModeOnExit: false  (default: false)
dBreakpointsFullPath: false  (default: false)
dCloseBuffersOnExit: true  (default: false)  ***
dCloseMemoryBuffersOnExit: true  (default: true)
dUseDebuggingHelper: true  (default: true)
dUseCodeModel: true  (default: true)
dRaiseOnInterrupt: true  (default: true)
dStationaryEditorWhileStepping: false  (default: false)
dFontSizeFollowsEditor: false  (default: false)
dUseMessageBoxForSignals: true  (default: true)
dUseAlternatingRowColours: false  (default: false)
dLogTimeStamps: false  (default: false)
dAutoQuit: false  (default: false)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
dQUEUE: SETUP ENGINE
dCALL: SETUP ENGINE
dTRYING TO START ADAPTER
dENABLING TEST CASE: 0
dSTARTING /usr/bin/gdb -i mi --tty=/tmp/QtCreator-fvS335/outputcollector.RKX335
dGDB STARTED, INITIALIZING IT
<465show version
<466show debug-file-directory
<467set print object on
<468set breakpoint pending on
<469set print elements 10000
<470set unwindonsignal on
<471set width 0
<472set height 0
sSetting up inferior...
<473set substitute-path /var/tmp/qt-src /home/tjmaciei/obj/qt/qt5/qtbase
<474python sys.path.insert(1, '/home/tjmaciei/obj/qt/qt-creator/share/qtcreator/debugger/')
<475python sys.path.append('/usr/bin/data-directory/python')
<476python from gdbbridge import *
<477python theDumper.loadDumpers({"token":477})
>=thread-group-added,id="i1"
>~"GNU gdb (GDB; openSUSE Tumbleweed) 8.0.1\n"
>~"Copyright (C) 2017 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
>~"This GDB was configured as \"x86_64-suse-linux\".\nType \"show configuration\" for configuration details."
>~"\nFor bug reporting instructions, please see:\n"
>~"<http://bugs.opensuse.org/>.\n"
>~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
>~"For help, type \"help\".\n"
>~"Type \"apropos word\" to search for commands related to \"word\".\n"
>=cmd-param-changed,param="print static-members",value="off"
>&"show version\n"
>~"GNU gdb (GDB; openSUSE Tumbleweed) 8.0.1\n"
>~"Copyright (C) 2017 Free Software Foundation, Inc.\n"
>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
>~"This GDB was configured as \"x86_64-suse-linux\".\nType \"show configuration\" for configuration details."
>~"\nFor bug reporting instructions, please see:\n"
>~"<http://bugs.opensuse.org/>.\n"
>~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
>~"For help, type \"help\".\n"
>~"Type \"apropos word\" to search for commands related to \"word\".\n"
>465^done
dPARSING VERSION: 465^done
dSUPPORTED GDB VERSION GNU gdb (GDB; openSUSE Tumbleweed) 8.0.1
dCopyright (C) 2017 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
dThis is free software: you are free to change and redistribute it.
dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "x86_64-suse-linux".
dType "show configuration" for configuration details.
dFor bug reporting instructions, please see:
d<http://bugs.opensuse.org/>.
dFind the GDB manual and other documentation resources online at:
d<http://www.gnu.org/software/gdb/documentation/>.
dFor help, type "help".
dType "apropos word" to search for commands related to "word".
dGNU gdb (GDB; openSUSE Tumbleweed) 8.0.1
dCopyright (C) 2017 Free Software Foundation, Inc.
dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
dThis is free software: you are free to change and redistribute it.
dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
dand "show warranty" for details.
dThis GDB was configured as "x86_64-suse-linux".
dType "show configuration" for configuration details.
dFor bug reporting instructions, please see:
d<http://bugs.opensuse.org/>.
dFind the GDB manual and other documentation resources online at:
d<http://www.gnu.org/software/gdb/documentation/>.
dFor help, type "help".
dType "apropos word" to search for commands related to "word".
dUSING GDB VERSION: 80001, BUILD: 2017
<478-interpreter-exec console "set target-async off"
>&"show debug-file-directory\n"
>~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n"
>466^done
>&"set print object on\n"
>=cmd-param-changed,param="print object",value="on"
>467^done
>&"set breakpoint pending on\n"
>=cmd-param-changed,param="breakpoint pending",value="on"
>468^done
>&"set print elements 10000\n"
>=cmd-param-changed,param="print elements",value="10000"
>469^done
>&"set unwindonsignal on\n"
>=cmd-param-changed,param="unwindonsignal",value="on"
>470^done
>&"set width 0\n"
>=cmd-param-changed,param="width",value="4294967295"
>471^done
>&"set height 0\n"
>472^done
>&"set substitute-path /var/tmp/qt-src /home/tjmaciei/obj/qt/qt5/qtbase\n"
>473^done
>&"python sys.path.insert(1, '/home/tjmaciei/obj/qt/qt-creator/share/qtcreator/debugger/')\n"
>474^done
>&"python sys.path.append('/usr/bin/data-directory/python')\n"
>475^done
>&"python from gdbbridge import *\n"
>476^done
>&"python theDumper.loadDumpers({\"token\":477})\n"
>~"result={token=\"477\",dumpers=[{type=\"std____debug__unordered_set\"},{type=\"boost__variant\"},{type=\"QV4__InternalClass__Transition\"},{type=\"CPlusPlus__Identifier\"},{type=\"QtcDumperTest_PointerArray\"},{type=\"std__list\"},{type=\"QmakeProjectManager__QmakeProFileNode\"},{type=\"QtcDumperTest_FieldAccessByIndex\"},{type=\"std__multimap\",formats=\"17\"},{type=\"QUuid\"},{type=\"boost__optional\"},{type=\"QDir\"},{type=\"TNimNode\"},{type=\"QSharedData\"},{type=\"Debugger__Internal__GdbMi\"},{type=\"QV4__PropertyHash\"},{type=\"std__complex\"},{type=\"__m256\"},{type=\"boost__container__list\"},{type=\"CPlusPlus__Symbol\"},{type=\"std____debug__unordered_multimap\",formats=\"17\"},{type=\"std____1__complex\"},{type=\"std__deque\"},{type=\"std___Rb_tree_const_iterator\"},{type=\"QFixed\"},{type=\"uint8_t\"},{type=\"std____1__set__iterator\"},{type=\"std____debug__stack\"},{type=\"CPlusPlus__StringLiteral\"},{type=\"QPoint\"},{type=\"std____1__vector\"},{type=\"QMultiMap\",formats=\"17\"},{type=\"CPlusPlus__Token\"},{type=\"std__byte\"},{type=\"QLocale\"},{type=\"QV4__CallContext\"},{type=\"QJsonPrivate__q_littleendian\"},{type=\"string\",editable=\"true\"},{type=\"std__set\"},{type=\"std___Tree_const_iterator\"},{type=\"__gnu_cxx__hash_set\"},{type=\"QFile\"},{type=\"wstring\"},{type=\"QByteArrayData\"},{type=\"CPlusPlus__Literal\"},{type=\"QSizeF\"},{type=\"NimStringDesc\"},{type=\"std__unordered_multimap\",formats=\"17\"},{type=\"QIPv6Address\"},{type=\"QV4__Heap__String\"},{type=\"Utils__ElfSection\"},{type=\"QGraphicsPolygonItem\"},{type=\"Debugger__Internal__DisassemblerLine\"},{type=\"QTypedArrayData\"},{type=\"QTimeZone\"},{type=\"QMap\",formats=\"17\"},{type=\"std____cxx11__string\",formats=\"5, 6, 7, 8\"},{type=\"std____1__stack\"},{type=\"QArrayData\"},{type=\"QV4__ScopedString\"},{type=\"QChar\"},{type=\"boost__posix_time__time_duration\"},{type=\"CPlusPlus__TemplateNameId\"},{type=\"QQmlRefCount\"},{type=\"std____debug__set\"},{type=\"QMetaObject\"},{type=\"QHostAddress\"},{type=\"QV4__Value\"},{type=\"QVariantList\"},{type=\"std__unordered_multiset\"},{type=\"QObjectPrivate__ConnectionList\"},{type=\"QJsonValue\"},{type=\"std____1__shared_ptr\"},{type=\"QV4__SimpleScriptFunction\"},{type=\"CPlusPlus__Internal__Value\"},{type=\"QFileInfo\"},{type=\"QHash__const_iterator\"},{type=\"qfloat16\"},{type=\"ProjectExplorer__FolderNode\"},{type=\"QTime\"},{type=\"QSqlField\"},{type=\"std___Tree_iterator\"},{type=\"QXmlStreamStringRef\"},{type=\"CPlusPlus__PointerType\"},{type=\"std____1__weak_ptr\"},{type=\"std____debug__unordered_multiset\"},{type=\"QString\",editable=\"true\",formats=\"2, 4\"},{type=\"gsl__span\"},{type=\"boost__bimaps__bimap\"},{type=\"cv__Size_\"},{type=\"std____cxx1998__map\"},{type=\"std____1__map__const_iterator\"},{type=\"QV4__Heap__Base\"},{type=\"QHash\",formats=\"17\"},{type=\"QXmlAttributes\"},{type=\"QHash__iterator\"},{type=\"KDSoapValue1\"},{type=\"QMetaEnum\"},{type=\"QLinkedList\"},{type=\"Utils__FileName\"},{type=\"QVariantHash\"},{type=\"QStack\",formats=\"16\"},{type=\"QBitArray\"},{type=\"std__list__QNX\"},{type=\"Debugger__Internal__BreakpointModelId\"},{type=\"boost__unordered__unordered_set\"},{type=\"Qt__ItemDataRole\"},{type=\"QLazilyAllocated\"},{type=\"std____1__basic_string\"},{type=\"std____cxx11__basic_string\"},{type=\"std__set__const_iterator\"},{type=\"QQmlBinding\"},{type=\"std____1__unique_ptr\"},{type=\"std__map__iterator\"},{type=\"QDate\"},{type=\"std____1__set_const_iterator\"},{type=\"std__stack\"},{type=\"std____weak_ptr\"},{type=\"std__multiset\"},{type=\"std__unordered_map\",formats=\"17\"},{type=\"QJsonPrivate__qle_bitfield\"},{type=\"QV4__Identifier\"},{type=\"__m128\"},{type=\"__m128d\"},{type=\"QTextCodec\"},{type=\"std__shared_ptr\"},{type=\"std____1__wstring\"},{type=\"std__unordered_set\"},{type=\"std__string\",editable=\"true\",formats=\"5, 6, 7, 8\"},{type=\"QHashedString\"},{type=\"Utf8String\"},{type=\"__m512d\"},{type=\"std____cxx1998__set\"},{type=\"QPixmap\"},{type=\"ProjectExplorer__Node\"},{type=\"std____1__multimap\",formats=\"17\"},{type=\"QMetaClassInfo\"},{type=\"std__map\",formats=\"17\"},{type=\"boost__posix_time__ptime\"},{type=\"QPointF\"},{type=\"std____cxx11__wstring\",formats=\"2, 4\"},{type=\"Eigen__Matrix\"},{type=\"QImage\",formats=\"2, 4\"},{type=\"QSet\"},{type=\"std__valarray\",formats=\"16\"},{type=\"std__map__const_iterator\"},{type=\"QJsonArray\"},{type=\"CPlusPlus__QualifiedNameId\"},{type=\"std____1__deque\"},{type=\"QFiniteStack\",formats=\"16\"},{type=\"std__set__iterator\"},{type=\"QTextDocument\"},{type=\"QTJSC__JSValue\"},{type=\"QSqlResultPrivate\"},{type=\"NimGenericSequence__\"},{type=\"QRegion\"},{type=\"std__wstring\",formats=\"2, 4\"},{type=\"QV4_Object\"},{type=\"QBasicAtomicInt\"},{type=\"QScriptValue\"},{type=\"QMetaProperty\"},{type=\"QDateTime\"},{type=\"std____1__unordered_set\"},{type=\"std____1__map__iterator\"},{type=\"boost__gregorian__date\"},{type=\"std__pair\"},{type=\"std__set__QNX\"},{type=\"std____1__list\"},{type=\"std__deque__MSVC\"},{type=\"CPlusPlus__ByteArrayRef\"},{type=\"QProcEnvKey\"},{type=\"boost__shared_ptr\"},{type=\"QV__PropertyHash\"},{type=\"Core__Id\"},{type=\"std__basic_string\"},{type=\"std____debug__vector\",formats=\"16\"},{type=\"QRectF\"},{type=\"QAtomicInt\"},{type=\"__m256i\"},{type=\"QQmlSourceLocation\"},{type=\"WTF__String\"},{type=\"Debugger__Internal__WatchData\"},{type=\"__m256d\"},{type=\"std____1__set\"},{type=\"gsl__byte\"},{type=\"QPolygonF\"},{type=\"QXmlStreamAttribute\"},{type=\"int8_t\"},{type=\"QStandardItemData\"},{type=\"QV4__SharedInternalClassData\"},{type=\"QQmlAccessorProperties__Properties\"},{type=\"QByteArray\",formats=\"5, 6, 7, 8\"},{type=\"QV4__ExecutionContext\"},{type=\"ProKey\"},{type=\"CPlusPlus__Class\"},{type=\"std__vector\",editable=\"true\",formats=\"16\"},{type=\"QV4__FunctionObject\"},{type=\"std____1__multiset\"},{type=\"std____1__unordered_map\",formats=\"17\"},{type=\"QV4__IdentifierTable\"},{type=\"__m512i\"},{type=\"QV4__InternalClassTransition\"},{type=\"__m128i\"},{type=\"QVariantMap\",formats=\"17\"},{type=\"QStringRef\"},{type=\"std____debug__map\"},{type=\"std____debug__list\"},{type=\"QStaticStringData\"},{type=\"QVariant (QVariantMap)\",formats=\"17\"},{type=\"QSize\"},{type=\"Debugger__Internal__WatchItem\"},{type=\"QPolygon\"},{type=\"std____1__string\"},{type=\"QSharedDataPointer\"},{type=\"QV__PropertyHashData\"},{type=\"QStringList\"},{type=\"std___Rb_tree_iterator\"},{type=\"std__optional\"},{type=\"std__deque__QNX\"},{type=\"QRegExp\"},{type=\"QStringData\"},{type=\"QFlags\"},{type=\"QTextCursor\"},{type=\"std____debug__unordered_map\",formats=\"17\"},{type=\"QList\",formats=\"18, 19\"},{type=\"QJsonPrivate__qle_signedbitfield\"},{type=\"QSharedPointer\"},{type=\"QUrl\",formats=\"2, 4\"},{type=\"QmakeProjectManager__QmakePriFileNode\"},{type=\"cv__Mat\",formats=\"4\"},{type=\"QVarLengthArray\"},{type=\"QV4__Object\"},{type=\"std____debug__deque\"},{type=\"std__unique_ptr\"},{type=\"QScopedPointer\"},{type=\"__m512\"},{type=\"std____1__map\",formats=\"17\"},{type=\"QStandardItem\"},{type=\"QtcDumperTest_BufArray\"},{type=\"QMapNode\"},{type=\"Core__GeneratedFile\"},{type=\"std__once_flag\"},{type=\"std____1__array\",formats=\"16\"},{type=\"std____1__valarray\",formats=\"16\"},{type=\"QVariant\"},{type=\"QV4__String\"},{type=\"QVector\",editable=\"true\",formats=\"16\"},{type=\"ProjectExplorer__ProjectNode\"},{type=\"Debugger__Internal__ThreadId\"},{type=\"std____1__once_flag\"},{type=\"QHashNode\",formats=\"17\"},{type=\"QV4__Scoped\"},{type=\"ProString\"},{type=\"Utils__Port\"},{type=\"QV4__CompilationUnit\"},{type=\"std__experimental__optional\"},{type=\"QTemporaryFile\"},{type=\"QXmlAttributes__Attribute\"},{type=\"KDSoapValue\"},{type=\"QJsonObject\"},{type=\"QRect\"},{type=\"CPlusPlus__IntegerType\"},{type=\"std__array\",formats=\"16\"},{type=\"CMakeProjectManager__Internal__CMakeProjectNode\"},{type=\"QJSValue\"},{type=\"std____cxx11__list\"},{type=\"CPlusPlus__FullySpecifiedType\"},{type=\"__gnu_debug___Safe_iterator\"},{type=\"QV4__ScriptFunction\"},{type=\"CPlusPlus__Internal__PPToken\"},{type=\"QWeakPointer\"},{type=\"std__weak_ptr\"},{type=\"QMetaMethod\"},{type=\"QAtomicPointer\"},{type=\"CPlusPlus__NamedType\"},],python=\"20713\"}\n"
>477^done
dENGINE SUCCESSFULLY STARTED
dNOTE: ENGINE SETUP OK
dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master]
dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master]
dQUEUE: SETUP INFERIOR
>478^done
dCALL: SETUP INFERIOR
<479-gdb-set environment PATH=/home/tjmaciei/obj/qt/qt5/qtbase/bin:/home/tjmaciei/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/sbin:/usr/sbin:/home/tjmaciei/dev/poky/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux:/home/tjmaciei/dev/poky/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:/home/tjmaciei/dev/poky/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/mips64-poky-linux:/home/tjmaciei/dev/poky/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/mips-poky-linux:/home/tjmaciei/dev/poky/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/powerpc-poky-linux:/home/tjmaciei/dev/intel/bin
<480-gdb-set environment QTDIR=/home/tjmaciei/obj/qt/qt5/qtbase
<481cd /home/tjmaciei/obj/qt/qt5/qtbase/src/corelib
<482-file-exec-and-symbols ""
>479^done
>480^done
>&"cd /home/tjmaciei/obj/qt/qt5/qtbase/src/corelib\n"
>~"Working directory /home/tjmaciei/obj/qt/qt5/qtbase/src/corelib.\n"
>481^done
>482^error,msg=": Arquivo ou diret\303\263rio n\303\243o encontrado."
sFailed to start application: Starting executable failed:
s: Arquivo ou diretório não encontrado.
dINFERIOR START FAILED
dNOTE: INFERIOR SETUP FAILED
sSetup failed.
dState changed from InferiorSetupRequested(4) to InferiorSetupFailed(5) [master]
dState changed from InferiorSetupFailed(5) to EngineShutdownRequested(19) [master]
dQUEUE: SHUTDOWN ENGINE
dCALL: SHUTDOWN ENGINE
dPLAIN ADAPTER SHUTDOWN 19
dINITIATE GDBENGINE SHUTDOWN IN STATE 0, PROC: 2
<483python theDumper.exitGdb({"token":483})
>&"python theDumper.exitGdb({\"token\":483})\n"
dGDB PROCESS FINISHED, status 0, exit code 0
dNOTE: ENGINE SHUTDOWN OK
dState changed from EngineShutdownRequested(19) to EngineShutdownOk(21) [master]
dState changed from EngineShutdownOk(21) to DebuggerFinished(22) [master]
dQUEUE: FINISH DEBUGGER
dNOTE: FINISH DEBUGGER
dHANDLE RUNCONTROL FINISHED
sDebugger finished.