Skip to main content Link Menu Expand (external link) Document Search Copy Copied

This is automatic generated document for things in Swow\Debug\Debugger\DebuggerHelper class

Class DebuggerHelper

Constants

public SOURCE_FILE_CONTENT_PADDING = 4 public SOURCE_FILE_DEFAULT_LINE_COUNT = 8

Properties

protected static $useMbString

Methods

Static method convertFrameToExecutingString

public static function convertFrameToExecutingString ( array{function: (string | null), class: (string | null), args: (array<string> | null)} $frame ) : string

Static method convertTraceToTable

public static function convertTraceToTable ( array<int, array{function: (string | null), class: (string | null), args: (array<string> | null), file: (string | null), line: (int | null)}> $trace , ?int $frameIndex ) : array<array{frame: int, executing: string, source_position: string}>

Static method convertValueToString

protected static function convertValueToString ( mixed $value , bool $forArgs ) : string

Static method getFollowingSourceFileContent

public static function getFollowingSourceFileContent ( SplFileObject $sourceFile , int $startLine , int $lineCount , int $offset ) : array<array{line: int, content: string}>

Static method getMaxLengthOfStringLine

protected static function getMaxLengthOfStringLine ( string $string ) : int

Static method getSourceFileContentAsTable

public static function getSourceFileContentAsTable ( string $filename , int $line , ?SplFileObject & $sourceFile , int $lineCount ) : array<array{line: (string | positive-int), content: string}>

Static method hasMbString

protected static function hasMbString ( ) : bool

Static method strlen

protected static function strlen ( string $string ) : int

Static method substr

protected static function substr ( string $string , int $offset , ?int $length ) : string

Static method tableFormat

public static function tableFormat ( array<mixed> $table ) : string

Copyright 2022 the Swow contributors