[#7047] add debugging