<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><FONT face="Courier New">
Hi,<BR>
 <BR>
Pardon me.  I am relatively new.<BR>
 <BR>
What is a way ( or effective way ) to debug an Rcpp/RCppArmadillo program that is running within R?<BR>
 <BR>
Do I try somehow to set an inline RCpp/RCppArmidillo <BR>script attribute to 'Debug' ( if this exists? )<BR>
 <BR>
Do I recompile R ( with perhaps 'g++ -g -O0' and try to debug an<BR>Rcpp/RCpp Armadillo file (.so/.dll) in an attached process in the  gdb debugger?<BR>
 <BR>
Do I just create an ( independent from R ) Armadillo C++ program .exe (  made with 'g++ -g -O0 )<BR>( and use my own BLAS/LAPACK ) outside of R, and just debug the .exe it using gdb?<BR>
 <BR>
Or, do I simply, in R, just put many 'print statements' in the inline RCpp/RCppArmidillo script?<BR>
 <BR>
What is a strategy?<BR>
 <BR>
Thank you,<BR>Andre Mikulec<BR><A href="mailto:Andre_Mikulec@Hotmail.com">Andre_Mikulec@Hotmail.com</A><BR>
 <BR></FONT>                                     </div></body>
</html>