std/core/debug▲toc

Core debugging functions.

.

val file/kk-file: stringstd/core/types/string: V

Compilation constant that is replaced with the current file name.

fun file/kk-file-line( ?kk-file : stringstd/core/types/string: V, ?kk-line : stringstd/core/types/string: V ) : stringstd/core/types/string: V
val file/kk-line: stringstd/core/types/string: V

Compilation constant that is replaced with the current line number.

val file/kk-module: stringstd/core/types/string: V

Compilation constant that is replaced with the current file's module name.

fun assert( message : stringstd/core/types/string: V, condition : boolstd/core/types/bool: V, ?kk-file-line : stringstd/core/types/string: V ) : ()
fun breakpoint(): ndetstd/core/types/ndet: X ()

Explicitly trigger a breakpoint.

fun notrace(): (ststd/core/types/st: H -> E<globalstd/core/types/global: H>) ()

Disable tracing completely.

fun trace( message : stringstd/core/types/string: V ) : ()

Trace a message used for debug purposes. The behaviour is system dependent. On a browser and node it uses console.log by default. Disabled if notracestd/core/debug/notrace: () -> (st<global>) () is called.

fun trace-any( message : stringstd/core/types/string: V, x : a ) : ()
fun trace-info( message : stringstd/core/types/string: V, ?kk-file-line : stringstd/core/types/string: V ) : ()
fun trace-show( x : a, ?show : (a) -> stringstd/core/types/string: V, ?kk-file-line : stringstd/core/types/string: V ) : ()
private import std/core/typesstd/core/types, std/core/unsafestd/core/unsafe, std/core/hndstd/core/hnd, std/core/stringstd/core/string, std/core/consolestd/core/console