diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-03-03 10:30:14 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-03-03 10:21:31 +0000 |
commit | 631e2c2a4a99132289c1c45d9a24e453b9acd3e7 (patch) | |
tree | 4dc4542772b5222990e76b1cf155e4af94edd475 | |
parent | 98673190adb6e67f133741254753750dae82ee4b (diff) |
ProjectExplorer: Log some values to narrow down a bug
Task-number: QTCREATORBUG-26875
Change-Id: Ifad56dc711241a03d391328cae202adc338ee0eb
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r-- | src/plugins/projectexplorer/buildconfiguration.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <QCheckBox> #include <QDebug> #include <QFormLayout> +#include <QLoggingCategory> #include <QVBoxLayout> 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(" ", "-"); |