[Companion][Simulator] Add custom qDebug message handler/formatter (#4475)
* [Companion][Simulator] Add custom qDebug message handler/formatter as an option. Keeps support for QT_MESSAGE_PATTERN env. var.
* [Simulator] Show system messages of level qInfo and above in debug console.
* [Simulator] Still capture screenshot to clipboard if path is not accessible (and screenshot results now print to simulator debug console).
* Fix for older CMake.
* [Companion] Do not start debug message handler if app is shutting down, and add null checks before using it; Increase backtrace report depth; Add OTx headers; Add Companion exit status debug; Clean up unused code.
* [Simulator] Add asynchronous FIFO buffer for handling debug output/display more efficiently. (#4488)
(cherry-picked from b12bd7d7be)
This commit is contained in:
committed by
Bertrand Songis
parent
620094e358
commit
00b2799427
@@ -44,6 +44,7 @@ namespace Ui {
|
||||
}
|
||||
|
||||
class QAbstractButton;
|
||||
class QMessageLogContext;
|
||||
class FilteredTextBuffer;
|
||||
|
||||
using namespace Simulator;
|
||||
@@ -71,6 +72,7 @@ class DebugOutput : public QWidget
|
||||
void restoreState();
|
||||
void processBytesReceived();
|
||||
void onDataBufferOverflow(const qint64 len);
|
||||
void onAppDebugMessage(quint8 level, const QString & msg, const QMessageLogContext & context);
|
||||
void onFilterStateChanged();
|
||||
void onFilterTextChanged(const QString &);
|
||||
void onFilterToggled(bool enable);
|
||||
|
||||
Reference in New Issue
Block a user