R-gdb is a project mainly written in ..., it's free.
Gdb macros for R
This is a collection of useful gdb macros for debugging R.
For more background on these, look at
src/main/inspect.c
in the R source distribution as a starting point.