StatET debugging tool StatET debugging tool r r

StatET debugging tool


StatET 2.00+ now has experimental support for advanced/visual debugging. It requires Eclipse 3.6 or 3.7

Installation instructions are here

You can see a snippet of video from UseR! 2011 here

EDIT: StatET 2.0.0 released or later includes the integrated debugger and is available here


The debug framework in Eclipse is not setup to work with R.

Roman Francois had considered having someone code up an integrated debugger that could possibly integrate with Eclipse/Stat-et, but I'm not sure that project progressed.

http://www.r-project.org/soc09/ideas.html#p5

The only "traditional" debugger that I know of that works with R is Revolution's IDE,

http://blog.revolutionanalytics.com/2009/11/rpe-the-r-productivity-environment-for-windows.html

That said, I would love to have a debugger for the Stat-et plugin too.


using StatET 3.3:

  1. Start RConsole as debug (while beeing in the StatET perspective)enter image description here

  2. Add breakpoints (by double clicking left to the line) and use Run Entire Command in R in the first line of a function definition:enter image description here

  3. Run the function. Execution will Break at the Breakpoint and you can inspect local variables by just hovering:

    enter image description here


Very useful, but the bugs? that it doesn't work with source() and that jump into doesn't work are very annoying as well. Perhaps an earlier version works better.