Writes the textual representations of items
most suitable for
debugging, separated by separator
and terminated by
terminator
, into output
.
The textual representations are obtained for each item
via
the expression String(reflecting: item)
.
Note: to print without a trailing newline, pass terminator: ""
See Also: print
, Streamable,
CustomStringConvertible,
CustomDebugStringConvertible`
Declaration
func
debugPrint
<
Target
:
OutputStreamType
>
(
items
:
Any
...,
separator
:
String
=
default
,
terminator
:
String
=
default
,
inout
toStream
output
:
Target
)
Writes the textual representations of
items
most suitable for debugging, separated byseparator
and terminated byterminator
, into the standard output.The textual representations are obtained for each
item
via the expressionString(reflecting: item)
.Note: to print without a trailing newline, pass
terminator: ""
See Also:
print
, Streamable,
CustomStringConvertible,
CustomDebugStringConvertible`Declaration
func
debugPrint
(
items
:
Any
...,
separator
:
String
=
default
,
terminator
:
String
=
default
)