Module debug

Module debug 

Source
Expand description

Debugging utilities for Hydro IR graph visualization.

Similar to the DFIR debugging utilities, this module provides convenient methods for opening graphs in web browsers and VS Code.

Functionsยง

open_dot
Opens Hydro IR leaves as a single DOT diagram.
open_mermaid
Opens Hydro IR leaves as a single mermaid diagram.
open_reactflow_browser
Opens Hydro IR leaves as a ReactFlow.js visualization in a browser. Creates a complete HTML file with ReactFlow.js interactive graph visualization.
save_and_open_reactflow_browser
Helper function to create a complete HTML file with ReactFlow.js visualization and open it in browser. Creates files in temporary directory to avoid cluttering the workspace.
save_dot
Saves Hydro IR leaves as a DOT/Graphviz file. If no filename is provided, saves to temporary directory.
save_mermaid
Saves Hydro IR leaves as a Mermaid diagram file. If no filename is provided, saves to temporary directory.
save_reactflow_json
Saves Hydro IR leaves as a ReactFlow.js JSON file. If no filename is provided, saves to temporary directory.