Implement PerspectiveDebugListener, improve debug output and API