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.

  1. void trace()
    template trace()
    void
    trace
    (
    string file = __FILE__
    size_t line = __LINE__
    )
    ()
  2. template trace(alias var)

Members

Functions

trace
void trace()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

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

Meta