print debug for attachement