From luke-tierney at uiowa.edu  Wed Mar 21 15:25:21 2012
From: luke-tierney at uiowa.edu (luke-tierney at uiowa.edu)
Date: Wed, 21 Mar 2012 09:25:21 -0500
Subject: [Rd] enableJIT() prohibits usual R debugging
In-Reply-To: <873992kpq5.fsf@gmail.com>
References: <87mx7al3ab.fsf@gmail.com>
	<alpine.DEB.2.02.1203210744180.980@luke-Latitude>
	<87aa3akr87.fsf@gmail.com> <873992kpq5.fsf@gmail.com>
Message-ID: <alpine.DEB.2.02.1203210920090.980@luke-Latitude>

On Wed, 21 Mar 2012, Vitalie Spinu wrote:

>>>>> Vitalie Spinu <spinuvit at gmail.com>
>>>>> on Wed, 21 Mar 2012 14:39:52 +0100 wrote:
>
>>>>> <luke-tierney at uiowa.edu>
>>>>> on Wed, 21 Mar 2012 07:46:21 -0500 wrote:
>
>  >> I can't reproduce this in either 2.14.1 or R-devel.
>
>  > Hm .. I cannot reproduce it, nor with the latest R-devel, nor with 2.14.2
>  > anymore. Some local glitch or something ...
>
> Instead I can reproduce similar problem as pointed by Feng:
>
> compiler::enableJIT(1)
> foo <- function(){
>    browser()
>    cat("here\n")
>    cat("here\n")
> }
>
> foo()
>
> and then "n RET". Everything is skipped.

Then the cunction call continues as it would vor 'c' -- you can't
single step through compiled code (and debugging a compiled function
switches to the interpreted version for that reason). I thought I had
put a note about this in ?browser and ?debug but apparently not --
will do soon. Thanks for pointing this out.

luke

>
> If this is the intended behavior then a very loud note would be really
> welcome in the "compile" help page.
>
> Thanks,
> Vitalie.
>
>> version
>               _
> platform       i686-pc-linux-gnu
> arch           i686
> os             linux-gnu
> system         i686, linux-gnu
> status         Under development (unstable)
> major          2
> minor          16.0
> year           2012
> month          03
> day            20
> svn rev        58793
> language       R
> version.string R Under development (unstable) (2012-03-20 r58793)
>>
>

-- 
Luke Tierney
Chair, Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
    Actuarial Science
241 Schaeffer Hall                  email:   luke-tierney at uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu



[Rd] enableJIT() prohibits usual R debugging
luke-tierney at uiowa.edu