Advertisement:

Navigation

SMF Mod Site

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

Download this mod

stack_trace.zip (3kB) [108]
Manual Install Instructions for SMF


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

Description:

Stack Trace 1.0




Show the backtrace in the error log

Introduction:

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.