Debugging/testing/logging

Hi guys, I am a little bit tired to use a TestBox as the output for my printIfDebug procedure so I searched for snippets or extension or some docs about but I did not find anything interesting. Before I reinvent the wheel I would ask if you know something useful. If there is nothing useful I am thinking to implement a simple print over UDP or TCP so that the output will be on a different device.