<div dir="ltr">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:<div>  <a href="http://kevinushey.github.io/blog/2015/04/13/debugging-with-lldb/">http://kevinushey.github.io/blog/2015/04/13/debugging-with-lldb/</a><br></div><div>which complements the information in R-exts</div><div>  <a href="https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Debugging-compiled-code">https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Debugging-compiled-code</a></div><div><br></div><div>Cheers,</div><div>Rich</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 13, 2016 at 10:17 AM Rainer M Krug <<a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
What is te easiest way of debugging a package using Rcpp which gives a<br>
segfault in the C++ code?<br>
<br>
What is the up-to-date procedure?<br>
<br>
I am on OS X and use usually emacs and ess.<br>
<br>
Any suggestions?<br>
<br>
Thanks,<br>
<br>
Raner<br>
<br>
--<br>
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br>
<br>
Centre of Excellence for Invasion Biology<br>
Stellenbosch University<br>
South Africa<br>
<br>
Tel :       +33 - (0)9 53 10 27 44<br>
Cell:       +33 - (0)6 85 62 59 98<br>
Fax :       +33 - (0)9 58 10 27 44<br>
<br>
Fax (D):    +49 - (0)3 21 21 25 22 44<br>
<br>
email:      <a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a><br>
<br>
Skype:      RMkrug<br>
<br>
PGP: 0x0F52F982<br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></blockquote></div>