[API] write debug finished