Skip to content

How do you debug the R implementation?

2 messages · Mick Jordan, Gábor Csárdi

#
This is a question for the folks who are developing the C part of the R 
implementation, and not about R debugging.

I'm curious what tools developers use to debug the C implementation on 
Mac OS and Linux (my two platforms). And, if you happen to use gdb, 
whether anyone has any macros to simplify seeing inside the R internal 
data structures.

Thanks
Mick Jordan
#
On OSX I suggest using lldb instead of gdb, it works better with the
toolchain. If you want C level profiling, try Instruments, it is part of
xcode.

See also
http://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Debugging-compiled-code

Gabor
On Thu, Mar 12, 2015 at 5:55 PM, Mick Jordan <mick.jordan at oracle.com> wrote: