Commit a471d3ae authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Do not enable QML-debugging by default for projects using C++.



QML-debugging is rarely desired for C++ projects and causes warnings
about timeouts from the QML debugger not being able to connect.

Change-Id: Ide3e870a40b49deae24d3d88ea4973dd45d83e75
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 28656de6
...@@ -226,9 +226,11 @@ bool DebuggerRunConfigurationAspect::useCppDebugger() const ...@@ -226,9 +226,11 @@ bool DebuggerRunConfigurationAspect::useCppDebugger() const
bool DebuggerRunConfigurationAspect::useQmlDebugger() const bool DebuggerRunConfigurationAspect::useQmlDebugger() const
{ {
if (m_useQmlDebugger == DebuggerRunConfigurationAspect::AutoEnabledLanguage) if (m_useQmlDebugger == DebuggerRunConfigurationAspect::AutoEnabledLanguage) {
return runConfiguration()->target()->project()->projectLanguages().contains( const Core::Context languages = runConfiguration()->target()->project()->projectLanguages();
ProjectExplorer::Constants::LANG_QMLJS); return languages.contains(ProjectExplorer::Constants::LANG_QMLJS)
&& !languages.contains(ProjectExplorer::Constants::LANG_CXX);
}
return m_useQmlDebugger == DebuggerRunConfigurationAspect::EnabledLanguage; return m_useQmlDebugger == DebuggerRunConfigurationAspect::EnabledLanguage;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment