forked from qt-creator/qt-creator
QmlDebug: Simplify logic to find the source file for a stack frame
Get rid of custom logic to handle shadow builds (which didn't work anyway if the qml files are from a different directory than expected). Instead, just search for the file name in the list of files from the project. Reviewed-by: Christiaan Janssen
This commit is contained in:
@@ -707,12 +707,13 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu
|
||||
sp.qtInstallPath = findQtInstallPath(qmake);
|
||||
}
|
||||
if (const ProjectExplorer::Project *project = target->project()) {
|
||||
sp.projectDir = project->projectDirectory();
|
||||
if (const ProjectExplorer::BuildConfiguration *buildConfig = target->activeBuildConfiguration()) {
|
||||
sp.projectBuildDir = buildConfig->buildDirectory();
|
||||
if (const ProjectExplorer::ToolChain *tc = buildConfig->toolChain())
|
||||
sp.projectSourceDirectory = project->projectDirectory();
|
||||
if (const ProjectExplorer::BuildConfiguration *buildConfig = target->activeBuildConfiguration()) {
|
||||
sp.projectBuildDirectory = buildConfig->buildDirectory();
|
||||
if (const ProjectExplorer::ToolChain *tc = buildConfig->toolChain())
|
||||
sp.debuggerCommand = tc->debuggerCommand();
|
||||
}
|
||||
}
|
||||
sp.projectSourceFiles = project->files(Project::ExcludeGeneratedFiles);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user