[ESS] ess-tracebug behavior [probably wishlist]

Vitalie Spinu spinuvit at gmail.com
Wed Apr 24 22:21:45 CEST 2013


Hi Ross, 

Dev ESS has now true toggleble breakpoints that you can
activate/deactivate during the debug session without the need of
re-sourcing. Toggling is bound to C-c C-t o.

I have also much improved the ess-dbg-flag-for-debugging. It sees all
the functions from the current context, and all the internal functions
in the namespaces of the packages listed in ess-developer-packages. So,
if you are on SVN or git please test the stuff out. I would be happy to
hear your comments.

 >>> Ross Boylan <ross at biostat.ucsf.edu>
 >>> on Tue, 09 Apr 2013 12:48:45 -0700 wrote:

 >> Now I'm in a mess: I set a breakpoint on one function in a package.
 >> That worked the first time.  Then I flagged a function it called (also
 >> in the package) for debugging.  Now I don't stop at the breakpoint and I
 >> don't get the usual break for debug(fn).  I also tried debug(fn) on the
 >> R command line.  Still no dice.  Both functions are exported by the
 >> namespace.

Such a mess could easily occur because there are usually at least two
copies of a function, one in package environment, another in the
namespace. And what you debug and call after, depends on the visibility
of the lexical environment of the caller. It could be really messy.

    Vitalie



More information about the ESS-help mailing list