Debugger
class Debugger (View source)
A debugging utility class
Properties
static protected ObjectManagerInterface | $objectManager | ||
static protected array | $renderedObjects | ||
static protected array | $ignoredClassesFallback | Hardcoded list of Flow class names (regex) which should not be displayed during debugging. |
|
static protected string | $ignoredClassesRegex | ||
static protected int | $recursionLimit | ||
static protected int | $recursionLimitFallback | ||
static protected string | $excludedPropertyNames | ||
static bool | $stylesheetEchoed | Is set to true once the CSS file is included in the current page to prevent double inclusions of the CSS file. |
Methods
Clear the state of the debugger
Renders a dump of the given variable
Renders a dump of the given array
Renders a dump of the given object
Renders some backtrace
No description
No description
No description
Returns a code snippet from the specified file.
No description
No description
No description
No description
No description
Wrap a string with the ANSI escape sequence for colorful output
Tries to load the 'Neos.Flow.error.debugger.ignoredClasses' setting to build a regular expression that can be used to filter ignored class names If settings can't be loaded it uses self::$ignoredClassesFallback.
Tries to load the 'Neos.Flow.error.debugger.recursionLimit' setting to determine the maximal recursions-level fgor the debugger.
Details
static void
injectObjectManager(ObjectManagerInterface $objectManager)
Injects the Object Manager
static void
clearState()
Clear the state of the debugger
static string
renderDump(mixed $variable, int $level, bool $plaintext = false, bool $ansiColors = false)
Renders a dump of the given variable
static protected string
renderArrayDump(iterable $array, int $level, bool $plaintext = false, bool $ansiColors = false)
Renders a dump of the given array
static protected string
renderObjectDump(object $object, int $level, bool $renderProperties = true, bool $plaintext = false, bool $ansiColors = false)
Renders a dump of the given object
static string
getBacktraceCode(array $trace, bool $includeCode = true, bool $plaintext = false)
Renders some backtrace
static protected string
renderCallArgumentsHtml(array $callArguments)
No description
static protected string
getBacktraceCodePlaintext(array $trace, bool $includeCode = true)
No description
static protected string
renderCallArgumentsPlaintext(array $callArguments)
No description
static string
getCodeSnippet(string $filePathAndName, int $lineNumber, bool $plaintext = false)
Returns a code snippet from the specified file.
static protected string
getObjectSnippetPlaintext(object $object)
No description
static protected string
getObjectShortName(object $object)
No description
static protected string
truncateObjectOutput(string $stringifiedObject)
No description
static protected string
getCodeSnippetPlaintext(string $filePathAndName, int $lineNumber)
No description
static array
findProxyAndShortFilePath(string $file)
No description
static protected string
ansiEscapeWrap(string $string, string $ansiColors, bool $enable = true)
Wrap a string with the ANSI escape sequence for colorful output
static string
getIgnoredClassesRegex()
Tries to load the 'Neos.Flow.error.debugger.ignoredClasses' setting to build a regular expression that can be used to filter ignored class names If settings can't be loaded it uses self::$ignoredClassesFallback.
static int
getRecursionLimit()
Tries to load the 'Neos.Flow.error.debugger.recursionLimit' setting to determine the maximal recursions-level fgor the debugger.
If settings can't be loaded it uses self::$ignoredClassesFallback.