From 456a019f2d563a86644fde0ab15fc957bad8e9e8 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 26 Jun 2023 09:23:45 +0200 Subject: [PATCH] Debugger: Don't spam app output Only errors should be displayed in the App output. Everything else is just noise. To keep the information for debugging purpose we log it to the Debugger Output View instead. Fixes: QTCREATORBUG-27160 Change-Id: I37301edd2f6638e2b4152d1bf7b89a40c9c3c0af Reviewed-by: Marcus Tillmanns --- share/qtcreator/debugger/lldbbridge.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py index bef97482af6..3cef9f22c9d 100644 --- a/share/qtcreator/debugger/lldbbridge.py +++ b/share/qtcreator/debugger/lldbbridge.py @@ -755,15 +755,15 @@ class Dumper(DumperBase): qtVersionAndNamespace = None try: qtVersionAndNamespace = self.fetchQtVersionAndNamespace() - DumperBase.warn("Detected Qt Version: 0x%0x (namespace='%s')" % - (qtVersionAndNamespace[1], qtVersionAndNamespace[0] or "no namespace")) + self.report("Detected Qt Version: 0x%0x (namespace='%s')" % + (qtVersionAndNamespace[1], qtVersionAndNamespace[0] or "no namespace")) except Exception as e: DumperBase.warn('[lldb] Error detecting Qt version: %s' % e) try: self.fetchInternalFunctions() - DumperBase.warn('Found function QObject::property: 0x%0x' % self.qtPropertyFunc) - DumperBase.warn('Found function QObject::customEvent: 0x%0x' % self.qtCustomEventFunc) + self.report('Found function QObject::property: 0x%0x' % self.qtPropertyFunc) + self.report('Found function QObject::customEvent: 0x%0x' % self.qtCustomEventFunc) except Exception as e: DumperBase.warn('[lldb] Error fetching internal Qt functions: %s' % e)