$frame
$frame : array
addComment(string $comment, string $context = 'global')
Adds a comment to this frame, that can be received and used by other handlers. For example, the PrettyPage handler can attach these comments under the code for each frame.
An interesting use for this would be, for example, code analysis & annotations.
string | $comment | |
string | $context | Optional string identifying the origin of the comment |
getFileLines(integer $start, integer $length = null) : array<mixed,string>|null
Returns the contents of the file for this frame as an array of lines, and optionally as a clamped range of lines.
NOTE: lines are 0-indexed
integer | $start | |
integer | $length |
if $length is less than or equal to 0
** File not found : Get **
** File not found : Get **
equals(\Whoops\Exception\Frame $frame) : boolean
Compares Frame against one another
\Whoops\Exception\Frame | $frame |