This is a debug only print utility.
primitive val Debug
new val create() : Debug val^
If platform is debug configured, print either a single stringable or a sequence of stringables. The default separator is ", ", and the default output stream is stdout.
fun box apply( msg: (Stringable box | ReadSeq[Stringable box] box), sep: String val = ", ", stream: (DebugOut val | DebugErr val) = reference) : None val
If platform is debug configured, print message to standard output
fun box out( msg: Stringable box = "") : None val
If platform is debug configured, print message to standard error
fun box err( msg: Stringable box = "") : None val
fun box eq( that: Debug val) : Bool val
fun box ne( that: Debug val) : Bool val
fun box _print( msg: String val, stream: (DebugOut val | DebugErr val)) : None val
fun box _stream( stream: (DebugOut val | DebugErr val)) : Pointer[U8 val] ref
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/debug-Debug