## Not run: ------------------------------------
# # quick-and-dirty method
# cls <- makeCluster(2)
# setclsinfo(cls)
# # define 'buggy' function
# g <- function(x,y) {u<-x+y; v<-x-y; dbsmsg(c(u,v)); u^2+v^2}
# clusterExport(cls,"g")
# # set x and y at cluster nodes
# clusterEvalQ(cls,{x <- runif(1); y <- runif(1)})
# # start debugging session
# dbsmsgstart(cls)
# # run
# clusterEvalQ(cls,g(x,y))
# # files dbs.1 and dbs.2 created, each reporting u,v values
#
# # dbs() method
# # make a test file
# cat(c("f <- function(x) {"," x <- x + 1"," x^2","}"),file="x.R",sep="\n")
# dbs(2,src="x.R",ftn="f")
# # now type in manager window:
# clusterEvalQ(cls,f(5))
# # the 2 worker windows are now in the browser, ready for debugging
#
# stopCluster(cls)
## ---------------------------------------------
Run the code above in your browser using DataLab