debug file save