forked from qt-creator/qt-creator
QmlDebugging: Attach to QML application
Specify project source directory and sysroot. Change-Id: Ie9287ef4da023159b131e67de51ffc218c4d2a70 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user