diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 3ac268c8b66..ccec9cb7682 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1173,6 +1173,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, } DebuggerRunParameters rp; rp.startMode = AttachCrashedExternal; + rp.languages = CppLanguage; rp.crashParameter = it->section(QLatin1Char(':'), 0, 0); rp.attachPID = it->section(QLatin1Char(':'), 1, 1).toULongLong(); rp.displayName = tr("Crashed process %1").arg(rp.attachPID); diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp index fab12a1920a..3f4625d7c8a 100644 --- a/src/plugins/debugger/debuggerruncontrol.cpp +++ b/src/plugins/debugger/debuggerruncontrol.cpp @@ -485,11 +485,12 @@ void DebuggerRunControlCreator::enrich(const RunConfiguration *runConfig, const m_rp.masterEngineType = QmlEngineType; service = QmlDebug::QmlDebuggerServices; } - if (m_rp.startMode != AttachExternal) + if (m_rp.startMode != AttachExternal && m_rp.startMode != AttachCrashedExternal) { QtcProcess::addArg(&m_rp.inferior.commandLineArguments, (m_rp.languages & CppLanguage) && m_rp.nativeMixedEnabled ? QmlDebug::qmlDebugNativeArguments(service, false) : QmlDebug::qmlDebugTcpArguments(service, m_rp.qmlServerPort)); + } } }