What are productive ways to debug Rcpp compiled code loaded in R (on OS X Mavericks)?
What is the most productive and quickest way to debug shared objects that are loaded into R, in particular on OS X Mavericks? I'm primarily interested in debugging compiled Rcpp code. I have read the R externals on debugging compiled code ( http://cran.r-project.org/doc/manuals/R-exts.html#Debugging-compiled-code ) which favours using gdb, but gdb isn't officially supported on Mavericks. However, it seems that lldb is a viable alternative? I found the most useful resource for working out how to debug compiled code in R from Dirk's response to this post (Thanks Dirk!) ( Debugging (line by line)