When debugging window compositing problems with the Wayland client-server protocol, often it is a good idea to set the environment variable “WAYLAND_DEBUG=1” and to take a deep look on the messages that are sent via this protocol. But as always, a lot of output is generated and highlighting can help very much. So far, you could use Johan’s excellent QML based highlighter with many cool features (e.g. rainbow colors for different objects).
However, in my workflow usually I already have Kate open and simply want to paste a trace therein and to use Kate’s cool syntax highlighting features. So, yesterday I sat down and created an initial set version of highlighting rules for Wayland trace logs. These rules are already merged and will be available with the next KF5 release.
If you do not want to wait until the next KF5 release, just save wayland-trace.xml file to “~/.local/share/org.kde.syntax-highlighting/syntax/” in your local home folder, restart Kate, and then select the highlighting scheme “Other -> Wayland Trace”.