Skip to content

std.manifestDebug #783

Open
Open
@sbarzowski

Description

@sbarzowski

A function which takes any Jsonnet value and returns a string with all available information about the contents. It would be similar to manifestJson, but it would also:
(a) include hidden fields (with ::).
(b) functions don't cause an error- instead functions are "serialized" to something like <function>. We could also include argument names (but that is impossible from within Jsonnet).

Useful for debugging (analogues in other languages include Python's repr, Golang go-spew library and PHP var_dump).

Other possible names: std.debug, std.dump, std.spew.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions