Very simple.
Create a specific method of text output for the debug process, so that it can only be output to screens created for the debug process, and that no other text from other events gets output to it.
This could be via a Debug handle for the window.
I guess as an interim solution, we/I should use /debug @Window.debug