diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp
index 990b154eb691bce625da36c2b3c7cb4c0904bfae..03b2853f938971124fbd5ea0de8110fd132b7cca 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: