Skip to content
Prev 39253 / 63424 Next

debugger() fails if "..." in function arguments

On Fri, 18 Feb 2011, Charles Roosen wrote:

            
But you are asked to report only on current R.
I doubt if almost anyone uses dump.frames() in R.  I think this is 
known, and the workaround is 'don't do that': use error=recover.
That's easy to fix with a tryCatch() wrapper.  But the real problem is 
with last.dump(), and recover() has it to some extent:

options(error=recover)
myFunc(1,2,e=pi)
Error in myFunc(1, 2, e = pi) :

Enter a frame number, or 0 to exit

1: myFunc(1, 2, e = pi)

Selection: 1
Called from: top level
Browse[1]> e
Error during wrapup: object 'e' not found

If you know how, you can get to 'e' though ....

I am really not sure this is worth changing.