diff --git a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm index 0a8236f21d5ed..9c814e62101d1 100644 --- a/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm +++ b/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm @@ -414,6 +414,8 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) { // xcrun didn't find a matching SDK. Not an error, we'll try // different spellings. LLDB_LOG(log, "xcrun returned exit code {0}", status); + if (!output_str.empty()) + LLDB_LOG(log, "xcrun output was:\n{0}", output_str); return ""; } if (output_str.empty()) {