Skip to content
Back to formatted view

Raw Message

Message-ID: <x2emcusovw.fsf@blueberry.kubism.ku.dk>
Date: 1999-12-10T17:10:27Z
From: Peter Dalgaard
Subject: FAQ: 8.2 How can I debug dynamically loaded code?
In-Reply-To: "John D. Barnett"'s message of "Fri, 10 Dec 1999 11:58:47 -0500"

"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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._