[R] Browser and Debug?

Duncan Murdoch murdoch at stats.uwo.ca
Fri Aug 14 02:15:31 CEST 2009


rkevinburton at charter.net wrote:
> If I am on Windows and don't have GDB it does'nt look like it is possible. Any tips?
>   

For debugging without a debugger, you can always use the old-fashioned 
method of inserting print statements (Rprintf in C).  But you want to do 
this without a debugger *and* without a compiler.  I think you are 
indeed asking for more than can be reasonably expected.

If you want to relax the constraints a little, you might use some of the 
methods described on

http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/

I haven't updated it in a while, but I don't think there's much that has 
changed (other than REvolution's IDE, which I haven't had a chance to 
try yet).

Duncan Murdoch
> Kevin
> ---- roger koenker <rkoenker at uiuc.edu> wrote: 
>   
>> At points of total desperation you can always consider
>> the time-honored, avuncular advice  --  RTFM,
>> in this case Section 4.4 of Writing R Extensions.
>>
>>
>> url:    www.econ.uiuc.edu/~roger            Roger Koenker
>> email    rkoenker at uiuc.edu            Department of Economics
>> vox:     217-333-4558                University of Illinois
>> fax:       217-244-6678                Urbana, IL 61801
>>
>>
>>
>> On Aug 13, 2009, at 10:20 AM, <rkevinburton at charter.net> wrote:
>>
>>     
>>> This may be asking more than can be reasonably expected. But, any  
>>> tips on debugging the 'C' and Fortran code without trying to put  
>>> together all the tools to compile from source?
>>>
>>> Kevin
>>>
>>> ---- Erik Iverson <eiverson at nmdp.org> wrote:
>>>       
>>>> This article might help:
>>>>
>>>> http://www.biostat.jhsph.edu/~rpeng/docs/R-debug-tools.pdf
>>>>
>>>> -----Original Message-----
>>>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org 
>>>> ] On Behalf Of Inchallah Yarab
>>>> Sent: Thursday, August 13, 2009 9:40 AM
>>>> To: r-help at r-project.org
>>>> Subject: [R] Browser and Debug?
>>>>
>>>> Hi,
>>>>
>>>> Someone can explain to me how use Browser and Debug ?
>>>> thank you
>>>>
>>>>
>>>>
>>>> 	[[alternative HTML version deleted]]
>>>>
>>>> ______________________________________________
>>>> R-help at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>
>>>> ______________________________________________
>>>> R-help at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>>> and provide commented, minimal, self-contained, reproducible code.
>>>>         
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>       
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list