SMFHacks.com

Modifications/Themes => Modifications Talk => Latest Mods => Topic started by: SMFHacks on February 15, 2020, 07:21:33 pm

Title: [Mod]Stack Trace by live627
Post by: SMFHacks on February 15, 2020, 07:21:33 pm
Stack Trace by live627



https://www.smfhacks.com/index.php?action=downloads;sa=view;down=225

Stack Trace by live627
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.