Skip to content
FutureBlitz

    Install

    Import std.core.format

    Dump

    std.core.format

    function

    Public Function Dump<T>(value: T): String

    The debug form of value, with each part on a line of its own, as "{value:#?}" gives it.

    Examples

    Struct Point
        Field X: Int
        Field Y: Int
    End Struct
    
    Local shown = Dump(Point(1, 2))
    Expect(shown.Contains("X") && shown.Contains("1") && shown.Contains("\n"))

    std/core/format.fb, line 116

    Report an issue with this page or with FutureBlitz on GitHub.