Edit the target page to include <!-- DEBUG --> where you want the debugging output to appear. This is generally required on the error page, but may be included on any page within the store, including a template!
<!-- DEBUG -->