Traceback
PronunciationTRAYS-bak
Definition
A traceback (or stack trace) is the report printed when an error stops a program. It lists the chain of calls that led to the error; in Python the last line holds the error itself, so read from the bottom up.
Where you hear it
When debugging, in bug reports ("paste the full traceback"), error monitoring tools and logs.
Examples
Paste the full traceback, not just the last line.
The traceback points at line 42 in
payments.py.The traceback shows the function that called the failing one, so you can work back up the chain.
Common mistake
Reading only the top. The cause is usually near the bottom, where your own code meets the failing call.
Don't confuse with
The call stack, which is the live structure of active calls. A traceback is a printed snapshot of it at the moment of the error.
Say it at work
- In a meeting or chat
Start with the last line of the traceback.
- In an email or ticket
Which frame in the traceback is in our code?
Keep exploring
More in Testing & Quality