if print.debug then turn all warnings into errors and dump.frame to file