Debug

Debug allows you to output data to the console. By default when you are not in production mode debugging will not output anything.

Log

When used output will be written to the console using console.log()

<debug log="Log a message or variable"></debug>

Info

When used output will be written to the console using console.info()

<debug info="Log a message or variable"></debug>

Warning

When used output will be written to the console using console.warn()

<debug warn="Log a message or variable"></debug>

Error

When used output will be written to the console using console.error()

<debug error="Log a message or variable"></debug>

No eval

The no-eval flag will disable evaluation of variables and output the text as is.

<debug no-eval log="{{$a}} == {{$b}}"></debug>
# The result with no-eval:
{{$a}} == {{$b}}

# The result when omitting no-eval:
false

Production

The prod flag will allow output to be written to the console even in a production setting.

<debug prod log="Log a message or variable in a production setting"></debug>