Debugger Helpers
The package exposes one helper.
debugbar()
function debugbar(): Debugger
debugbar() is the public entry point for the package.
Behavior:
- checks whether
Quantum\Debugger\Debuggeris registered inQuantum\Di\Di - registers it if missing
- returns the container-managed instance
Lifecycle implications
- repeated
debugbar()calls return the same DI-managedDebuggerinstance for the current process - that instance keeps the same
DebuggerStoreandDebugBarobjects unless the container is rebuilt - helper consumers do not need to pass dependencies manually in normal application code
Where the helper is used in core
Current framework usage includes:
InitDebuggerStagefor store initializationMessageAdapterfor logging into debug tabs- default web layout templates for final rendering
ViewFactoryfor injecting the debugger intoQuantum\View\View
For application code, this helper is the supported API. The framework does not expose a separate factory class for the package.