dump

Pretty-print variables with name and values. It can print will print all compile-time and runtime arguments. The first runtime argument can be a custom OutputRange. The following argument can be a custom format can be given in the format Syntax, where the first value is the name of the variable (or number for runtime arguments), the second it's value and the third it's type. Positional specifier can be used too. If no OutputRange is given, a string will be returned. Callable objects will be evaluated.

template dump(T...)
void
dump
(
Writer
Char
Xs...
)
(
Writer w
,
in Char[] fmt
,
lazy Xs xs
)
if (
isOutputRange!(Writer, string)
)

Parameters

T

names of the variables to print

w

The OutputRange to write to.

fmt

The format of the data to read.

xs

runtime arguments to print

Return Value

void if an output range was provided as first runtime argument and a string otherwise.

Meta