search for: debugthisfunct

Displaying 1 result from an estimated 1 matches for "debugthisfunct".

2012 Mar 17
0
tryCatch interferes with traceback(), debugger(), dump.frames()....
I want to use tryCatch, but tryCatch seems to obscure important things I need for debugging. For example, say I am working with an SQLite database, and have written this function: debugThisFunction <- function(dbfile) { require(RSQLite) drv <- SQLite() conn <- dbConnect(drv, dbfile) tryCatch({ dbBeginTransaction(conn) tryCatch({ for (i in 1:10) { somethingWhichCrashesSometimes() } }, error = function(e) {dbRollback(conn); stop(e)}) db...