-
Notifications
You must be signed in to change notification settings - Fork 0
How it works
See the Generating a trace file using Xdebug page.
Load the homepage and select a file from the drop down.
The drop-down is populated based on the contents of the xdebug.trace_output_dir
setting. Xdebug does not have to be enabled for Pathfinder to process and display trace files. If Xdebug is not enabled, the path /var/www/html/watson/watson-pathfinder/xdebug-trace-files/
is used instead.
The filepath of the selected trace file is passed to the constructor of the XdebugParser
class.
The parse
method reads the trace file, one line at a time, and passes the data to the parseLine
method, which parses the line according to the Xdebug documentation (https://xdebug.org/docs/all_settings#trace_format). The parsed data is stored in an array.
When the getTraceHTML
method is called, it uses output buffering to generate a HTML tree of the parsed data.