Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Reading an error message and stack trace
card 6 of 6
Remember
builds on: Command output and exit codes
In Python the error type and message sit on the last line, with the newest call just above. In JavaScript or Java they sit near the top, above the frames, with the newest call first. Each frame gives a file, line and function. Look first at the frame from your own code nearest the error line. As evidence, paste the command plus the whole trace copied exactly, and say what you expected.
Terms on this card
- frame
- One entry in a stack trace: a file, line number and function name, often followed by that line of code.
- function
- A named, reusable block of code, such as `add_prices`, that other code can call.
- error type
- The category name of a failure, like `KeyError` or `TypeError`, printed just before the error message.
- JavaScript
- A programming language, run outside the browser by a program called Node.js (command `node`).
- Java
- A programming language whose stack traces, like JavaScript's, print the error first and the newest call at the top.
Lesson goal: Find the error type, the message, and the file and line where a failure happened in a stack trace. Identify which part to paste to an agent as evidence. ·
the whole lesson