Promptles
Debugging & Error Handling

Stack Trace

beginner

Definition

A list of function calls the program was in the middle of when an error occurred, shown from the most recent call back to the starting point. It's like a trail of breadcrumbs showing exactly how the code arrived at the crash.

In the wild

TypeError: Cannot read property 'name' of undefined at getUser (users.js:12) at handleRequest (server.js:45) at main (index.js:3) This tells you the error is in getUser at line 12 of users.js, called from handleRequest, called from main.

More from Debugging & Error Handling