PhpPopupDebug is a simple way to debug using echo to a window that is not the application window.