Write more debug to file