[R] FAQ: 8.2 How can I debug dynamically loaded code?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Dec 10 18:10:27 CET 1999

"John D. Barnett" <jbarnett at wi.mit.edu> writes:

> I'm having some trouble following the instructions in the FAQ for
> debugging.
> I can run 'R -d gdb' at the command line and it works; also, I have run
> gdb from emacs before.
> But I can't figure out how to put the two together: I've tried following
> the instructions in the FAQ, but I seem to be missing something.  Can
> someone with experience tell me exactly how I should invoke gdb on R
> from within emacs?

Hmm. I don't usually do that, but both of the following seems to be
somewhat in the right direction:

C-u M-x R and then give options -d gdb (requires ESS)


M-x gdb and then give R -d gdb as startup command

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
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

More information about the R-help mailing list