Output tree to debug instead of console