R: How make dump.frames() include all variables for later post-mortem debugging with debugger()
问题 I have the following code which provokes an error and writes a dump of all frames using dump.frames() as proposed e. g. by Hadley Wickham: a <- -1 b <- "Hello world!" bad.function <- function(value) { log(value) # the log function may cause an error or warning depending on the value } tryCatch( { a.local.value <- 42 bad.function(a) bad.function(b) }, error = function(e) { dump.frames(to.file = TRUE) }) When I restart the R session and load the dump to debug the problem via load(file = "last