Wishlist-for-R
Wishlist-for-R copied to clipboard
WISH Better traceback
More context on the traceback information would be useful when debugging (such as the couple of lines before and after where the error is, as well as the line numbers where the error occured)
@NelleV you might like https://github.com/r-lib/tracer#readme
FWIW, the following update was just made to R-devel (to become R 3.7.0) based on PR1580:
\item The internal traceback object produced when an error is
signalled (\code{.Traceback}), now contains the \code{call}s rather
than the \emph{\code{deparse()}d} calls, deferring the deparsing to
the user level functions \code{.traceback()} and \code{traceback()},
fulfilling the whish of \PR{17580}, reported (incl. patch proposal)
by Brodie Gaslam.
It's a step in the right direction.
That's really good news! It's indeed going to help a lot understanding bugs and issues when the problem arises low in the stack.