HenrikBengtsson / Wishlist-for-R

Features and tweaks to R that I and others would love to see - feel free to add yours!
https://github.com/HenrikBengtsson/Wishlist-for-R/issues
GNU Lesser General Public License v3.0
133 stars 4 forks source link

WISH Better traceback #65

Open NelleV opened 6 years ago

NelleV commented 6 years ago

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)

gaborcsardi commented 6 years ago

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

HenrikBengtsson commented 5 years ago

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.

NelleV commented 5 years ago

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.