Debugging a Function
General approach
traceback
R:
debug
/undebug
,debugonce
R:
browser()
RStudio: breakpoint
R:
trace
andrecover
R: Debug function from Base R or Packages
Python: Debug using Spyder
Python: Debug using VSCode
Python: Debug using Console