[RFC 14/19] ktf: Internal debugging facilities