[ESS-bugs] tracebug problem: debug() --> from [2] to [36] !!!
Vitalie Spinu
spinuvit at gmail.com
Fri Oct 25 10:17:33 CEST 2013
Hi Martin,
Could you please print the call stack (C-c ~) next time this happens?
It is not really an ess-tracebug problem. From your report I see it's a
help request that fails. That can mean that our help is not full poof
or R really enters calls that it should not enter. Most likely the
second. I have reported it long ago on R devel.
See http://comments.gmane.org/gmane.emacs.ess.general/7378
and http://comments.gmane.org/gmane.comp.lang.r.devel/33522
Tracebug doesn't do anything behind your back really. You shouldn't
blame it so easily ;)
Vitalie
>>> Martin Maechler on Fri, 25 Oct 2013 09:14:08 +0200 wrote:
> I'm debugging an S3 method for "dummy.coef",
> I'm working inside *R* exclusively.
> Earlier I had
>> debug(robustbase:::dummy.coef.lmrob)
> and then called dummy.coef(<lmrob object>)
> and hence entered the debugger correctly.
> Now watch this
> Browse[2]>
> Browse[2]> debug(NextMethod)
> Browse[2]> rr <- NextMethod("dummy.coef", object, ...)
> debugging in: NextMethod("dummy.coef", object, ...)
> debug: .Internal(NextMethod(generic, object, ...))
> Browse[36]>
> Note the '[36]' !!!!
> I'm 36 levels (yes, and for some reaons the levels are always
> "multiplied by 2", so it is ``only'' 18 levels ...)
> inside a call even though I only entered one
> function.
> And indeed, it's no joke:
> I can painfully go back level after level :
> Browse[36]> c
> Error in NextMethod("dummy.coef", object, ...) : object not specified
> Browse[34]> c
> exiting from: NextMethod("[")
> debugging in: NextMethod(.Generic)
> debug: .Internal(NextMethod(generic, object, ...))
> Browse[34]> c
> exiting from: NextMethod(.Generic)
> (list "base" '(("generic" . "NULL") ("object" . "NULL") ("..." . "")) '("generic" "object" "..."))
> Browse[32]> c
> exiting from: NextMethod("[")
> debugging in: NextMethod(.Generic)
> debug: .Internal(NextMethod(generic, object, ...))
> Browse[32]> c
> exiting from: NextMethod(.Generic)
> (list "base" '(("generic" . "NULL") ("object" . "NULL") ("..." . "")) '("generic" "object" "..."))
> Browse[30]> c
> This is really ess-tracebug's failure and does not happen if I
> use R outside ESS.
> I've -- quite rarely -- seen this before, but not recently, so I
> had thought this was a temporary glitch in ess-tracebug, but it
> seems not.
> Vitalie ?
> _______________________________________________
> ESS-bugs ESS-bugs at r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-bugs
> _______________________________________________
> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core
More information about the ESS-bugs
mailing list