Displaying 20 results from an estimated 10000 matches similar to: "Need mtrace (malloc debugging) help"
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()
2004 Sep 27
1
mtrace and debug
Hello,
pointed to the article "Debugging Without (Too Many) Tears" of Mark
Bravington in Rnews Vol 3/3, December 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
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
2006 Oct 18
1
strange error in mtrace
Dear useRs,
I am experiencing very strange error with Mark Bravington'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
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 deleted]]
2011 Jan 18
2
Surprise Thread Preemptions
Hi,
I would like to know about which threads will be preempted by which on my OpenSolaris machine.
Therefore, I ran a multithreaded program "myprogram" with 32 threads on my 24-core Solaris machine. I make sure that each thread of my program has same priority (priority zero), so that we can reduce priority inversions (saving preemptions -- system overhead). However, I ran the following
2007 May 12
1
mtrace() fails
I find the R debug package very useful. I've installed and used it on
several of the machines I use, without problems, but on one machine I
get the following 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
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")}
> mtrace(foo)
> foo() # A tcl/tk windows open
2009 Aug 08
1
How to pass flags (arguments) to an application
Hi everyone. I have a problem running a Windows appilcation with wine.
The application is a Acucobol program.
When I run "wine wrun32.exe myprogram" it works ok.
When I run "wine wrun32.exe -C config.cfg myprogram" wine says
myprogram doesn't exist.
Any help?
--
Marcelo Arroyo
2003 Jan 08
3
Errors running R in Batch mode under Win2000
I have made many different attempts to run a R program in Batch mode. I run a DOS command like:
C:\Progra~1\R\rw1061\bin\rterm.exe -q --no-restore --no-save myprogram.R out.txt
What happens:
1. DOS Shell starts up well
2. R starts
3. I get the messages:
"ARGUMENT 'myprogram.R' __ignored__"
"ARGUMENT 'out.txt' __ignored__"
4. R Shell is ready to
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 an
error.
--
View this
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
>
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 in
it. After closing/resizing
2012 Jan 21
1
recomile a dll file in R
dear all,
I created a dll file from a fortran program. How I can recompile it in R? I
use "dyn.load(F:/myprogram.dll)" without any error but when I run
"source(F:/myprogram.r)" this error occurs:
"Error in file(file, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(file, "r", encoding = encoding) :
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
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
2018 Nov 26
3
CentOS 7 bash perhaps off topic
hi all,
I have a small script that seems to be exiting and hitting the sleep 60...
The smwebsocket just connects to the web socket provided and outputs the
data. This works manually.
the myprogram just opens a database and writes the line...
My desire is to run the smwebsocket, connect to the websocket and output
the data (line by line) when we get a line that matches Location take that
line
2009 Sep 23
1
Strange behaviour with global variable in C
I understand global variables can be a bad idea, but even so I would like to
understand what is going on here...
### DESCRIPTION OF PROGRAM ###
...I have a strange bug on a global variable in some C code which I am compiling
using
$ MAKEFLAGS="CFLAGS=-g -O0" R CMD SHLIB myProgram.c
the global variable in question is the log likelihood. In an old version of the
program I initialized
2007 Dec 10
1
Question re: RWinEdt conflicting with my WinEdt
Hi,
This is a question regarding the RWinEdt package for R. I have WinEdt
5.5, RWinEdt 1.7-9, and R 2.6.0 on WindowsXP.
Somehow my configuration or start up files between RWinEdt and WinEdt
are getting confused. Usually when I open either one, the last files I
was working on *with that program* are opened automatically. So if I
last used mydoc.tex in WinEdt and myprogram.R in RWinEdt those
2007 Jan 04
1
need help with debug package
Hi all,
I met a problem while using the debug package, I have the following program:
mainfun<- function(){
beta<-1
result<-subfun(beta+x)
}
subfun<-function(expr){
y <- eval(expr, envir=list(x=c(1,2)),enclos = parent.frame())
return(y)
}
I have no problem using this program without calling the debug