#root

debug root/debug/debug.vi

Debugging-related utilities.

Show root/debug/Show.vi

trait Show[T];
enum Show { ... }

enabled root/debug/debug.vi:57

const enabled: Bool;

Whether debug mode is enabled.

log root/debug/debug.vi:67

fn log[T; Cast[T, String]](msg: T);

backtrace root/debug/debug.vi:74

fn backtrace() -> Option[&List[Frame]];

error root/debug/debug.vi:79

fn error[M, T; Cast[M, String]](msg: M) -> T;

error_with root/debug/debug.vi:89

fn error_with[M, T, U; Cast[M, String]](msg: M, ctx: T) -> U;

dbg root/debug/debug.vi:95

fn dbg[T; Show[T]](value: T) -> T;

dbg_msg root/debug/debug.vi:101

fn dbg_msg[T; Show[T]](value: T, msg: String) -> T;

with_state root/debug/debug.vi:107

fn with_state[F](f: F) -> WithState[F];

WithState root/debug/debug.vi:111

struct WithState[F](...);

Frame root/debug/debug.vi:126

struct Frame({ col: N32, file: String, line: N32, path: List[String] });
  1. Show

    1. ShowTuple

      1. ShowObject

        1. ShowVariant

        2. WithState

          1. Frame