split debug task into env/event, diagnostic output from App