Wire up debug output in sample apps.