Expand description
Debug utilities for inspecting and understanding YAML structures.
This module provides debugging tools including:
- CST tree visualization
- Pretty Debug formatting showing actual values
- Visual diffs between documents
- Deep value inspection
- AST visualization (GraphViz output)
These functions are useful for both contributors working on yaml-edit and users debugging their YAML documents.
Structs§
- Pretty
Debug - Pretty-print a YAML document showing its structure and values.
- Value
Inspector - Value inspector for deep type analysis.
- Visual
Diff - Visual diff between two YAML documents.
Functions§
- graphviz_
dot - Generate GraphViz DOT format visualization of the CST.
- print_
stats - Prints statistics about a YAML document’s CST.
- print_
tree - Prints the CST (Concrete Syntax Tree) structure to stdout.
- print_
tree_ indent - Prints the CST structure with a custom starting indentation.
- tree_
to_ string - Returns a string representation of the CST structure.
- validate_
tree - Validates that the CST follows expected structural invariants.