diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index b6a0cf6e75c66c18632e4ba93ea20517bc19503d..55edc08ca901af1b1326746906fec5a40fd5baa4 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1771,6 +1771,7 @@ void DebuggerPluginPrivate::attachToQmlPort()
     sp.sysroot = dlg.sysroot();
 
     sp.startMode = AttachToRemoteServer;
+    sp.languages = QmlLanguage;
 
     //
     // get files from all the projects in the session