diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 1ca6e317156..1349f6f6b1a 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1803,7 +1803,10 @@ void DebuggerPluginPrivate::attachToQmlPort() foreach (Project *project, projects) sourceFiles << project->files(Project::ExcludeGeneratedFiles); + sp.projectSourceDirectory = + !projects.isEmpty() ? projects.first()->projectDirectory() : QString(); sp.projectSourceFiles = sourceFiles; + sp.sysRoot = SysRootKitInformation::sysRoot(kit).toString(); DebuggerRunControlFactory::createAndScheduleRun(sp); }