StatET debugging tool
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:
Start RConsole as debug (while beeing in the StatET perspective)
Add breakpoints (by double clicking left to the line) and use
Run Entire Command in R
in the first line of a function definition:Run the function. Execution will Break at the Breakpoint and you can inspect local variables by just hovering:
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.