mid debug