Skip to content
Prev 4027 / 398513 Next

FAQ: 8.2 How can I debug dynamically loaded code?

Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:
A third option is to start R within ESS mode (M-x R) and load whatever
R libraries that you want, then start gdb (M-x gdb) giving
$RHOME/bin/R.X11 as the program to debug.  Use the program "ps" to
find the process number of the currently running R process then use
use the "attach" command in gdb to attach gdb to that process.

One advantage of this method is that you have separate *R* and
*gud-gdb* windows.  Within the *R* window you have all the ESS
facilities, such as object-name completion, that we know and love.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._