Hi,
Browser doesn't work properly with the compiler enabled. It might be
intended behavior, but it's not documented.
compiler::enableJIT(1)
foo <- function(){
browser()
cat("here\n")
}
Browser doesn't stop, and I am getting:
> foo()
Called from: foo()
Browse[1]> here>
Thanks,
Vitalie.
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] compiler stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_2.14.2>
FYI https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14594 On 03/21/2012 10:19 AM, Vitalie Spinu wrote:> > Hi, > > Browser doesn't work properly with the compiler enabled. It might be > intended behavior, but it's not documented. > > > compiler::enableJIT(1) > foo<- function(){ > browser() > cat("here\n") > } > > > > Browser doesn't stop, and I am getting: > >> foo() > Called from: foo() > Browse[1]> here >> > > Thanks, > Vitalie. > >> sessionInfo() > R version 2.14.2 (2012-02-29) > Platform: i686-pc-linux-gnu (32-bit) > > locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 > [4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 > [7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C > [10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] compiler stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] tools_2.14.2 >> >-- Feng Li Department of Statistics Stockholm University SE-106 91 Stockholm, Sweden http://feng.li/
luke-tierney at uiowa.edu
2012-Mar-21 12:46 UTC
[Rd] enableJIT() prohibits usual R debugging
I can't reproduce this in either 2.14.1 or R-devel. luke On Wed, 21 Mar 2012, Vitalie Spinu wrote:> > Hi, > > Browser doesn't work properly with the compiler enabled. It might be > intended behavior, but it's not documented. > > > compiler::enableJIT(1) > foo <- function(){ > browser() > cat("here\n") > } > > > > Browser doesn't stop, and I am getting: > >> foo() > Called from: foo() > Browse[1]> here >> > > Thanks, > Vitalie. > >> sessionInfo() > R version 2.14.2 (2012-02-29) > Platform: i686-pc-linux-gnu (32-bit) > > locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 > [4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 > [7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C > [10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > > attached base packages: > [1] compiler stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] tools_2.14.2 >> > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- 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