title | subtitle |
---|---|
Debugging directives |
@breakpoint @debug @dump |
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');
- 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.
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"
}