This might be Linux specific, I have never tried it on anything else:
R -d gdb
library(<your-package>)
CTRL+C
break <an-entry-point-in-your-package-to-debug>
c
<your-function-to-debug>()
Maybe see also the R extensions manual,
Gabor
On Wed, Oct 8, 2008 at 3:28 AM, Droit Arnaud <Arnaud.Droit at ircm.qc.ca>
wrote:> Hello everybody,
>
> I have a package with a C codes called from R.
> I want to debug the C functions to check variables values and to include
some breakpoints in the C codes.
> I am wondering if anyone knows of any tools to easily help debug in the R
environment.
>
> Thank you very much for your help.
>
> Arnaud.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Gabor Csardi <Gabor.Csardi at unil.ch> UNIL DGM