Reading Stack Traces
Take a small program that you have previously written - it can be the same program you used in the homework for Part I. You will
- Introduce a runtime error.
- Navigate down the stack trace. For each stack frame in the stack trace:
- Find the source code location in your code editor.
- Reason about the code and come up with an explanation as to what is happening here. If you don't know, come up with an educated guess.
The next time you encounter a big scary stacktrace, take a step back, breath deeply, and investigate the causal chain of events that were recorded by the stacktrace. Did you learn anything by doing this? Report back your findings.Watch Now Do the Homework