Stack trace reading strategy

  • Python: read from the bottom up — root cause is the last line
  • Java: find the last "Caused by:" — that is the underlying root cause
  • Node.js: skip node_modules lines, focus on your own code
  • Anatomy: File path → line number → function name → code snippet → exception
  • RecursionError / stack overflow → missing base case or circular reference

Question 0 of 5

A Python traceback says "Traceback (most recent call last)" at the top. Where is the root cause of the error?