Serialize debug messages using a channel. Toying around with QT5.