[Rcpp-devel] Debugging an C++ code in package using Rcpp package ?
Rich FitzJohn
rich.fitzjohn at gmail.com
Wed Jan 13 11:21:18 CET 2016
On a mac, lldb passed to R as `R -d lldb` usually does the trick. Kevin
Ushey has written a nice article on this here:
http://kevinushey.github.io/blog/2015/04/13/debugging-with-lldb/
which complements the information in R-exts
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Debugging-compiled-code
Cheers,
Rich
On Wed, Jan 13, 2016 at 10:17 AM Rainer M Krug <Rainer at krugs.de> wrote:
> Hi
>
> What is te easiest way of debugging a package using Rcpp which gives a
> segfault in the C++ code?
>
> What is the up-to-date procedure?
>
> I am on OS X and use usually emacs and ess.
>
> Any suggestions?
>
> Thanks,
>
> Raner
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology, UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel : +33 - (0)9 53 10 27 44
> Cell: +33 - (0)6 85 62 59 98
> Fax : +33 - (0)9 58 10 27 44
>
> Fax (D): +49 - (0)3 21 21 25 22 44
>
> email: Rainer at krugs.de
>
> Skype: RMkrug
>
> PGP: 0x0F52F982
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20160113/e1e519d4/attachment.html>
More information about the Rcpp-devel
mailing list