From 774c2ec2053e8111a1abaff63240f543b21d41f5 Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@nokia.com>
Date: Fri, 15 Oct 2010 13:28:46 +0200
Subject: [PATCH] Debugger: Allow pure qml debugging if no C++ debugger is
 configured

Don't complain e.g. about a missing cdb debugger if the user doesn't
want to debug C++ anyway.

Task-number: QTCREATORBUG-2376
Reviewed-by: hjk
---
 src/plugins/debugger/debuggerrunner.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp
index 990b154eb69..03b2853f938 100644
--- a/src/plugins/debugger/debuggerrunner.cpp
+++ b/src/plugins/debugger/debuggerrunner.cpp
@@ -537,6 +537,9 @@ bool DebuggerRunControl::checkDebugConfiguration(int toolChain,
 
     bool success = true;
 
+    if (!(DebuggerPlugin::instance()->activeLanguages() & CppLanguage))
+        return success;
+
     switch(toolChain) {
     case ProjectExplorer::ToolChain::GCC:
     case ProjectExplorer::ToolChain::LINUX_ICC:
-- 
GitLab