trace

Debugging aid: Output current file/line to stderr.

Also flushes stderr to ensure buffering and a subsequent crash don't cause the message to get lost.

template trace()
void
trace
(
string file = __FILE__
size_t line = __LINE__
)
(
)

Examples

// Output example:
// src/myproj/myfile.d(42): trace
trace();

Meta