This allows to show the debug output in a second window in real time. This system could be expanded further to allow more interactivity but the current status is good enough.