Michael
2012-Nov-13 21:05 UTC
[R] How do I step thru all lines (including step into sub-routines) in a R script?
How do I step thru all lines (including step into sub-routines) in a R script? Hi all, I know I can put a "browser()" into any place... but how to step into sub-routines? Keep pressing "n" at the break-point seems not getting me into the sub-routines? Thanks a lot! [[alternative HTML version deleted]]
Duncan Murdoch
2012-Nov-13 21:43 UTC
[R] How do I step thru all lines (including step into sub-routines) in a R script?
On 12-11-13 4:05 PM, Michael wrote:> How do I step thru all lines (including step into sub-routines) in a R > script? > > Hi all, > > I know I can put a "browser()" into any place... > > but how to step into sub-routines? > > Keep pressing "n" at the break-point seems not getting me into the > sub-routines?Mark all your functions for debugging using debug(). It's not like a debugger that will single step until you tell it to just continue on, but it gives you the individual steps. When you've had enough of that, use undebug() to mark the functions for stepping over. Duncan Murdoch