debug teaching