added generation of .debug file.