Intern Track Roadmap

AI debugging: error resolution

This course covers how to hand an error to an AI assistant and judge the diagnosis it returns. It starts with pasting the exact error text instead of a paraphrase, then showing the method that raised it, with a line showing where its inputs came from. It covers reporting what you already checked, using a Rails console sandbox, and reading a diagnosis with three critical questions. It also explains the risk of applying a fix you cannot explain. A final lesson follows one Rails error through every step.

What you'll learn

  • ✓Pasting the exact exception class, message and app lines instead of a summary
  • ✓Choosing the right amount of code: the raising method plus where its inputs came from
  • ✓Checking facts in bin/rails console --sandbox and reporting what you already tried
  • ✓Testing an AI diagnosis against the error, the code and the real cause
  • ✓Spotting fixes that mask bugs, remove safeguards like permit! or patch the wrong file
  • ✓Explaining why a fix works before applying it
Free preview · Lesson 1 2 min read

Giving AI the full stack trace

A student hits this in the terminal:

Read the full lesson free →

Curriculum

7 lessons
Type to start searching...