From 631e2c2a4a99132289c1c45d9a24e453b9acd3e7 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 3 Mar 2022 10:30:14 +0100 Subject: [PATCH] ProjectExplorer: Log some values to narrow down a bug Task-number: QTCREATORBUG-26875 Change-Id: Ifad56dc711241a03d391328cae202adc338ee0eb Reviewed-by: hjk Reviewed-by: --- src/plugins/projectexplorer/buildconfiguration.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/projectexplorer/buildconfiguration.cpp b/src/plugins/projectexplorer/buildconfiguration.cpp index f5aec089ced..cfb36376621 100644 --- a/src/plugins/projectexplorer/buildconfiguration.cpp +++ b/src/plugins/projectexplorer/buildconfiguration.cpp @@ -59,6 +59,7 @@ #include #include #include +#include #include using namespace Utils; @@ -70,6 +71,8 @@ const char USER_ENVIRONMENT_CHANGES_KEY[] = "ProjectExplorer.BuildConfiguration. const char CUSTOM_PARSERS_KEY[] = "ProjectExplorer.BuildConfiguration.CustomParsers"; const char PARSE_STD_OUT_KEY[] = "ProjectExplorer.BuildConfiguration.ParseStandardOutput"; +Q_LOGGING_CATEGORY(bcLog, "qtc.buildconfig"); + namespace ProjectExplorer { namespace Internal { @@ -609,6 +612,8 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD { MacroExpander exp; + qCDebug(bcLog) << Q_FUNC_INFO << projectDir << mainFilePath << projectName << bcName; + // TODO: Remove "Current" variants in ~4.16 exp.registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX, QCoreApplication::translate("ProjectExplorer", "Main file of current project"), @@ -639,7 +644,9 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD exp.registerSubProvider([kit] { return kit->macroExpander(); }); QString buildDir = ProjectExplorerPlugin::buildDirectoryTemplate(); + qCDebug(bcLog) << "build dir template:" << buildDir; buildDir = exp.expand(buildDir); + qCDebug(bcLog) << "expanded build:" << buildDir; if (spaceHandling == ReplaceSpaces) buildDir.replace(" ", "-");