SMF Mod Site

Mod Name:
Stack Trace
Created By:
Feature Enhancement
First Created:
February 10, 2020, 05:36:02 PM
Last Modified:
February 10, 2020, 05:36:02 PM
Latest Version:
Compatible With:
Total Downloads:

Download this mod (3kB) [108]
Manual Install Instructions for SMF

Below are some preview images of what the mod looks like when being used


Stack Trace 1.0

Show the backtrace in the error log


In simple terms, a stack trace is a list of the method calls that the application was in the middle of when an error was encountered.

Tracing the call stack is important for complex codebases such as SMF because doing so helps software engineers and other developers find bugs in the program. Because of the nature of modern code syntax, and the complexity of the average project, looking for bugs can be very difficult. A stack trace is just one of many tools that can be useful in finding bugs or glitches.

This mod works by calling debug_backtrace() from log_error to ask PHP to trace the call stack. The results are then serialized into a database field for viewing by the admin when the error log is opened.