debugPrintln

@inline(never) func debugPrintln<T>(_: T)

Write to the console the textual representation of x most suitable for debugging, followed by a newline.

  • If T conforms to DebugPrintable, write x.debugDescription
  • Otherwise, if T conforms to Printable, write x.description
  • Otherwise, if T conforms to Streamable, write x
  • Otherwise, fall back to a default textual representation.

See also: debugPrint(x)

Declaration

@inline(never) func debugPrintln<T>(x: T)
@inline(never) func debugPrintln<T, TargetStream : OutputStreamType>(_: T, inout: TargetStream)

Write to target the textual representation of x most suitable for debugging, followed by a newline.

  • If T conforms to DebugPrintable, write x.debugDescription
  • Otherwise, if T conforms to Printable, write x.description
  • Otherwise, if T conforms to Streamable, write x
  • Otherwise, fall back to a default textual representation.

See also: debugPrint(x, &target)

Declaration

@inline(never) func debugPrintln<T, TargetStream : OutputStreamType>(x: T, inout target: TargetStream)