Displaying 20 results from an estimated 67 matches for "mtrace".
Did you mean:
ptrace
2010 Oct 29
2
how to debug (mtrace) a function defined inside a function?
Hi, everyone. I am using a fair amount of closures in my code. Problem i am
experiencing is i cannot figure out how to mtrace functions defined within a
function. There must be some way to name such function for mtrace to see it
and let me step into it. For example, say i have code
mymodel<-function(){
data<-numeric(0)
build<-function(){
data<<-1
}
m<-list()
m$build<-build
m
}
How do I...
2006 Oct 18
1
strange error in mtrace
...s package "debug".
I haven't seen them before.
Here is the sample session
> library(debug)
Loading required package: mvbutils
MVBUTILS: no "tasks" vector found in ROOT
Loading required package: tcltk
Loading Tcl/Tk interface ... done
> x<-function() return(1)
> mtrace(x)
> x()
Error in attr(value, "row.names") <- rlabs :
row names must be 'character' or 'integer', not 'double'
> mtrace(x,FALSE)
> x()
[1] 1
> mtrace(x)
> x()
Error in attr(value, "row.names") <- rlabs :
row names mu...
2007 Apr 04
1
Need mtrace (malloc debugging) help
Hi all,
I am using "mtrace" malloc debugging utility to trace memory leaks in my
application.
I followed following steps:
1. Added mtrace() function in the beginning of my main function.
2. exported the MALLOC_TRACE environment variable.
$ export MALLOC_TRACE=memory.log
3. Run the program
4. trace the program for...
2006 Oct 23
0
FW: Debug package question
...at csiro.au [mailto:Mark.Bravington at csiro.au]
Sent: 22 October 2006 23:53
To: Matthew Dowle
Cc: Mark.Bravington at csiro.au
Subject: RE: Debug package question
Hi Matthew
That's an interesting point. If it's your own code, my recommendation
would be to predefine the function and then mtrace it, as you suggest.
But I can see that this isn't always easy, e.g. if you're trying to
debug a system function.
Because every little operation in R is actually a function call, it's
probably not very useful for 'mtrace' to have a step-into mode. [Anyway,
whether useful or not,...
2004 Sep 27
1
mtrace and debug
...cember 2003 there is a package mvbutils
mentioned.
So I started to install this package from within R
> install.package(mvbutils)
I receive an error essage that this package is not found! Is due to a
merge,removal or rename of this package?
When I try to follow this article by typing i.e:
mtrace
I receive also an error message, that function mtrace is not found?
Where do I find the above mentioned package?
thanks
Thomas
----------------------------------------------------------------------------------------
platform i386-pc-linux-gnu
arch i386
os linux-gnu
system i386, li...
2011 Dec 22
1
mtrace function
I use windows xp. When trying to use the function mtrace from package debug
the window that should open with the function to be debugged do not show
any text at all. It shows only a part of my desktop. Does anyone know why.
Is there any imcompatibility between windows xp and debug package.
Thanks in advance.
Enio Jelihovschi
[[alternative HTML version...
2012 Jan 24
1
debug package: mtrace fails
Hi all,
Since three month ago I started working with R professionally, I never did
it before, so I am such a newbie.
I am having some problems using the 'debug' package. I love this package,
but most of the times I wanna use it it just fails :P
When typing at prompt 'mtrace(myfunct)' most of the times I get the
following error:
"Error in x[[i]] : subscript out of bounds"
I can't understand whats happening and I couldn't find any help surfing the
net. I have the feeling it might be because of my coding style or something
similar.
Any help will b...
2011 Apr 07
2
How to debug reference classes?
How do you debug methods of a reference class? I've been using mtrace, which
is excellent, but i cannot figure out how to mtrace a reference class
method. Maybe there is some other way to debug these, for example with
ordinary trace? for now i am only able to use options(error=recover), which
is not giving me idea where exactly in the code i am once i am stopped on a...
2010 May 04
0
masking of objects between mtrace() and getYahooData()
I am using getYahooData from TTR to get daily data. When i do it standalone,
it is fine. It also works fine inside my code. However, when i run code
inside mtrace(), i always get the following error:
Error in xts(cbind(adj[[1]], adj[[2]]), index(obj)):
order.by requires an appropriate time-based object
After a lot of hand wringing, it looks to me that it happens because index
in xts masks index in package mvbutils. Is there any way to avoid this type
of...
2009 Apr 13
0
debug/mtrace problem
Hello,
In the past I have used intensively the mtrace function from the debug
package, but now with my actual version of R(2.8.1) , it is impossible
to use it anymore.
I've updated all my packages, and I don't understand how solve this
problem...
Here is an example code :
> foo<-function(){cat("Test Function")}
> mtr...
2004 Mar 25
1
mlocal/mtrace inside a loop
Hello
I need some help in figuring Bravington’s debugger
out.
Ok
I have 2 functions, fun1 and fun2 saved in a ASCII
file say filename is funs.
Fun1 has a loop which calls fun2, fun2 has a loop
which fails and I need to find out the value of the
variables of the fun2 and fun1 loops at the specific
iteration that fails. Both fun1 and fun2 loops will
iterate thousands of times so line by line debug
2007 May 12
1
mtrace() fails
...error:
Loading required package: mvbutils
Loading required package: utils
MVBUTILS: no "tasks" vector found in ROOT
Loading required package: tcltk
Loading Tcl/Tk interface ... done
[Previously saved workspace restored]
> source("marbles.r")
> mtrace(sim4)
> sim4(100)
Error in all.levs[[j]] : subscript out of bounds
Here's my setting:
> sessionInfo()
R version 2.5.0 (2007-04-23)
i686-redhat-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=en_US.UTF-8;...
2007 Jan 02
4
Am I missing something about debugging?
I would like to be able to trace execution into calls below the current
function, or to follow execution as calls return. This is roughly the
distinction between "step" and "next" in many debuggers.
I would also like to be able to switch to a location further up the call
stack than the location at which I enter the debugger, to see the
context of the current operations.
Are
2011 Jul 23
0
graphic problem: transparent window when starting mtrace() from package debug
Deal R
,
when I use the package debug, mark a function with mtrace() and enter
into the browser like mechanism of debug a window displaying the code of
the marked function with the current line highlighted usually appears.
When I use GUIs other than ess or the standard R console sometimes this
window is totally transparent so it is not possible to see any code...
2012 Jan 06
0
graphic problem: transparent window when starting mtrace() from package debug
Hi Jannis
[I'm the author of package debug... I know this is 6 months after your query, sorry-- but I don't subscribe to R-help, and you didn't post to the maintainer! I'm primarily sending this to close off the thread.]
> when I use the package debug, mark a function with mtrace() and enter
> into the browser like mechanism of debug a window displaying the code of
> the marked function with the current line highlighted usually appears.
> When I use GUIs other than ess or the standard R console sometimes this
> window is totally transparent so it is not poss...
2003 Apr 06
0
namespaces and assignment: a problem/question
...nctions stopped working at about R1.6 with the arrival of
'namespace:base', and I'm anxious to find out what will happen when 1.7
arrives. But the question might be of more general relevance (hence my
desire to get it in before "lockdown" on 9th April).
I have a function 'mtrace' which is supposed to overwrite the "most
findable" instance of its argument. 'mtrace' could be called either from the
command line, or from inside another function (i.e. somewhere in a stack of
temporary frames). Conceptually, what 'mtrace' does is:
mtrace( fname) {...
2007 Jun 11
0
biplot package II
...m terra.com.br
#===============================================================================
#===============================================================================
# to debug 'biplot.s' functions
#===============================================================================
#mtrace(biplot.s.2d, T)
#mtrace(biplot.s.3d.default, T)
#mtrace(biplot.s.3d.rgl, T)
#mtrace(biplot.s.default, T)
#mtrace(biplot.s.prcomp, T)
#
#mtrace(biplot.s.2d, F)
#mtrace(biplot.s.3d.default, F)
#mtrace(biplot.s.3d.rgl, F)
#mtrace(biplot.s.default, F)
#mtrace(biplot.s.prcomp, F)
#=====================...
2007 May 04
3
Error in if (!length(fname) || !any(fname == zname)) { :
Dear R users,
I tried to fit a cox proportional hazard model to get estimation of stratified survival probability. my R code is as follows:
cph(Surv(time.sur, status.sur)~ strat(colon[,13])+colon[,18] +colon[,20]+colon[,9], surv=TRUE)
Error in if (!length(fname) || !any(fname == zname)) { :
missing value where TRUE/FALSE needed
Here colon[,13] is the one that I want to stratify and the
2002 Nov 05
2
2.5.6 release
On Tue, Nov 05, 2002 at 08:37:00AM -0800, Martin Pool wrote:
> On 10 Oct 2002, "Green, Paul" <Paul.Green@stratus.com> wrote:
> > No new CVS messages have appeared on the rsync-cvs archives since August
> > 30th. This seems rather odd-- perhaps a daemon stopped working? If there
> > has truly been no activity since that date, I apologize for
> >
2004 Jul 14
2
tracing something in a namespace (PR#7091)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@r-project.org
#
######################################################
> x <- rnorm(10)
> y <- 1:10
> xyplot(y ~ x)
>