appending debug to view