Latte\Macros\CoreMacros::macroDebugbreak PHP Method

macroDebugbreak() public method

..}
public macroDebugbreak ( MacroNode $node, PhpWriter $writer )
$node Latte\MacroNode
$writer Latte\PhpWriter
    public function macroDebugbreak(MacroNode $node, PhpWriter $writer)
    {
        if ($node->modifiers) {
            throw new CompileException('Modifiers are not allowed in ' . $node->getNotation());
        }
        if (function_exists($func = 'debugbreak') || function_exists($func = 'xdebug_break')) {
            return $writer->write($node->args == NULL ? "{$func}()" : "if (%node.args) {$func}();");
        }
    }