Skip to content

Debug

[Source]

This is a debug only print utility.

primitive val Debug

Constructors

create

[Source]

new val create()
: Debug val^

Returns


Public Functions

apply

[Source]

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 = seq,
  stream: (DebugOut val | DebugErr val) = seq)
: None val

Parameters

Returns


out

[Source]

If platform is debug configured, print message to standard output

fun box out(
  msg: Stringable box = seq)
: None val

Parameters

Returns


err

[Source]

If platform is debug configured, print message to standard error

fun box err(
  msg: Stringable box = seq)
: None val

Parameters

Returns


eq

[Source]

fun box eq(
  that: Debug val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: Debug val)
: Bool val

Parameters

Returns


Private Functions

_print

[Source]

fun box _print(
  msg: String val,
  stream: (DebugOut val | DebugErr val))
: None val

Parameters

Returns


_stream

[Source]

fun box _stream(
  stream: (DebugOut val | DebugErr val))
: Pointer[U8 val] ref

Parameters

Returns