dump

Debug dump arguments args to standard error (stderr).

template dump(args...)
private @safe pure
void
dump
(
string file = __FILE__
,
uint line = __LINE__
,
string fun = __FUNCTION__
)

Members

Manifest constants

fmt
enum fmt;
Undocumented in source.

Static variables

header
auto header;
Undocumented in source.
header
auto header;
Undocumented in source.

Examples

struct Bar { auto c = 'c';}
struct Foo { int s = 2; bool b = false; Bar bar;}
class FooBar { int t; Foo f; }

int i;
float f = 3.14;
char c = 'D';
string s = "some string";
Foo foo;
Bar bar;

dump!(i, c, f, s, foo, 1+3, foo, bar); /+ TODO: don’t print variable name for `1+3` +/

See Also

Meta