Remember to

Basic Manual Debugging Strategy

Observe

Run debugging-example-unfixed.R.

Run line by line

print(head(df))

Fix error by passing data_size_class instead of data. Run debugging-example-unfixed.R.

Debugger

Break points

  1. Insert breakpoint.
  2. Source the code.
  3. Program runs until breakpoint and stops (before executing the line of code).
  4. Environment gives the current values for all variables.
    • Local and global
    • Can switch scopes with dropdown

Stepping

Bugs to fix