Hi all,

In debugging, I've met the following problem:

myfunction = function (x, y)
{

for (i in 1:length(x)}
{
     Part_A;

     #save the debugging session here?

     Part_B;
}
}

All these parts are of very heavy computations and often can take hours to
finish.

How do I debug them efficiently?

I am thinking of to save a snapshot of the debugging session (everything
including the stack trace, etc.) in between Part_A and Part_B,

and then when I want to focus on Part_B only, I can replace the code
"Part_A" by "LoadDebugSession"...so that I don't have recompute Part_A
again and again...

Is ths possible to do?

Can stack traces be saved and then recovered?

Thanks

Thanks a lot!

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to