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:
@@ -2343,10 +2343,10 @@ static QString formatStartParameters(DebuggerStartParameters &sp)
|
||||
str << "Core: " << QDir::toNativeSeparators(sp.coreFile) << '\n';
|
||||
if (sp.attachPID > 0)
|
||||
str << "PID: " << sp.attachPID << ' ' << sp.crashParameter << '\n';
|
||||
if (!sp.projectDir.isEmpty()) {
|
||||
str << "Project: " << QDir::toNativeSeparators(sp.projectDir);
|
||||
if (!sp.projectBuildDir.isEmpty())
|
||||
str << " (built: " << QDir::toNativeSeparators(sp.projectBuildDir) << ')';
|
||||
if (!sp.projectSourceDirectory.isEmpty()) {
|
||||
str << "Project: " << QDir::toNativeSeparators(sp.projectSourceDirectory);
|
||||
if (!sp.projectBuildDirectory.isEmpty())
|
||||
str << " (built: " << QDir::toNativeSeparators(sp.projectBuildDirectory) << ')';
|
||||
str << '\n';
|
||||
}
|
||||
if (!sp.qtInstallPath.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user