Debugging directives
March 20, 2017 ยท View on GitHub
@breakpoint
The @breakpoint directive is a convienient way to place debugger breakpoints inside your views.
By default it uses xdebug_break but can be modified before the application is booted:
Radic\BladeExtensions\Directives\BreakpointAbstractDirective::setFunction('other_breakpoint_function_name');
@dump
- The
@dump()directive will dump the entire view environment. - The
@dump($var)directive will dump the$var.
Using the either raveren/kint, Laravels HtmlDumper, Symfony's VarDumper or the regular var_dump method.
Kint?
By installing the raveren/kint package. The debug output will be greatly improved. For more information, check out this page.
"require": {
"raveren/kint": "~1.0"
}
