Wishlist-for-R icon indicating copy to clipboard operation
Wishlist-for-R copied to clipboard

WISH Better traceback

Open NelleV opened this issue 6 years ago • 3 comments

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 avatar Mar 26 '18 19:03 NelleV

@NelleV you might like https://github.com/r-lib/tracer#readme

gaborcsardi avatar Apr 06 '18 02:04 gaborcsardi

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.

HenrikBengtsson avatar Jul 24 '19 07:07 HenrikBengtsson

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.

NelleV avatar Jul 24 '19 08:07 NelleV