Trace an unexpected null or undefined
Trace a null or undefined value back to its origin in the data flow. Provides both a defensive quick-fix and a proper root-cause solution.
Preview
Copy prompt
I am hitting a null or undefined error at this location: [Paste stack trace]. The relevant code path is: [Paste code]. Trace the data flow backwards from the point of failure to find where and why the value becomes null or undefined. Suggest both a defensive fix that prevents the crash immediately and a proper fix that resolves the root cause so the bad value never reaches that point.
More
Debugging
Prompts
