Tool for output debug data to file