John D. Barnett
1999-Dec-10 16:58 UTC
[R] FAQ: 8.2 How can I debug dynamically loaded code?
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? Thanks. -John Barnett -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
1999-Dec-10 17:10 UTC
[R] FAQ: 8.2 How can I debug dynamically loaded code?
"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) or 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._