Re: [Rd] How to debug reference classes?

From: A Zege <andre.zege_at_gmail.com>
Date: Fri, 08 Apr 2011 08:38:12 -0700 (PDT)

Thank you very much, gentlemen. It seems reference classes will make my life much easier. I won't pretend that i fully understand the wizardry with environments that you do, but it works :). Namely the steps to mtrace a class method by doing what John and Mark outlined

   xx$edit<-xx$edit
   mtrace(edit, from=xx)
   xx$edit(1,1,99)

do the magic of starting mtrace which solves my problem for practical purposes. I was not able to make the second part of prescription related to debugging unconstructed objects work. Namely, whenever i do

 mtrace( edit, from=mEditor$def_at_refMethods)

I get
Error in parent.env(from) : the empty environment has no parent. Must be doing something wrong, but haven't yet figured what.

--
View this message in context: http://r.789695.n4.nabble.com/How-to-debug-reference-classes-tp3434269p3436674.html
Sent from the R devel mailing list archive at Nabble.com.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 08 Apr 2011 - 15:44:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Apr 2011 - 15:50:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive