debug dumpToFile