diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index 9dde444f7a6..98d5e71ca75 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -873,7 +873,7 @@ DeviceFileAccess *FilePath::fileAccess() const static DeviceFileAccess dummy; DeviceFileAccess *access = s_deviceHooks.fileAccess(*this); - QTC_ASSERT(access, return &dummy); + QTC_ASSERT(access, qDebug() << toString(); return &dummy); return access; } diff --git a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp index 9dff261e2cd..10f71120b63 100644 --- a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp +++ b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp @@ -418,13 +418,13 @@ DeviceManager::DeviceManager(bool isInstance) : d(std::make_uniquefileAccess(); }; deviceHooks.environment = [](const FilePath &filePath) { auto device = DeviceManager::deviceForPath(filePath); - QTC_ASSERT(device, return Environment{}); + QTC_ASSERT(device, qDebug() << filePath.toString(); return Environment{}); return device->systemEnvironment(); };