Stack Trace

Stack Trace image
The primary purpose of a stack trace is to be used in debugging to help developers locate the exact line of code and the sequence of function calls that led to a specific error, exception, or crash. 

In practice, it is a list that shows the call stack—the history of nested function calls—starting from the currently executing function (where the error occurred) and tracing backward to the function that initially called it, and so on, back to the program's entry point. 

Each line in the stack trace represents a stack frame and typically includes: 
  • The function or method name. 
  • The file name where the function is defined. 
  • The line number within that file. 

In summary, the developers use stack traces to find what part of the code caused a failure. 
Explore MoT
QA Leadership Summit - The AI-Native Edge: Leading the Future of QA image
QALS Summer 2026: a leadership summit to move beyond AI testing pilots and build production-ready, AI-first QA organizations - powered by the BrowserStack AI Test Platform and 25+ connected AI agents
MoT Software Testing Essentials Certificate image
Boost your career in software testing with the MoT Software Testing Essentials Certificate. Learn essential skills, from basic testing techniques to advanced risk analysis, crafted by industry experts.
This Week in Quality image
Debrief the week in Quality via a community radio show hosted by Simon Tomes and members of the community
Subscribe to our newsletter