Hi, https://svn.r-project.org/R/trunk/src/library/utils/R/debugger.R currently has the arg list of dump.frames as: dump.frames <- function(dumpto = "last.dump", to.file = FALSE) would it be sensible to change the default for to.file to be to.file = !interactive() So that last.dump.rda would be created if a script (such as below) is run with "R CMD BATCH" when it hits the error. Stephen ## simple error in script. options(error=recover) simple <- function() { errorhere() } simple()