decy-debugger 1.0.2

Interactive debugger for Decy C-to-Rust transpiler with spydecy integration
Documentation

Decy Interactive Debugger

Deep integration with spydecy-debugger to provide introspective debugging capabilities for the Decy C-to-Rust transpiler.

Features

  • C AST Visualization: Display parsed C AST with colored tree view
  • HIR Visualization: Show High-level IR conversion from C
  • Ownership Graph: Visualize pointer ownership inference
  • Dataflow Graph: Display dataflow analysis results
  • Step-through Debugging: Step through transpilation pipeline
  • Diff Viewer: Compare input C vs output Rust

Architecture

C Source → Parser → AST → HIR → Analyzer → Codegen → Rust
             ↓        ↓     ↓       ↓         ↓        ↓
          [Debug] [Debug] [Debug] [Debug]  [Debug] [Debug]

Usage

use decy_debugger::Debugger;
use std::path::Path;

# fn main() -> anyhow::Result<()> {
let debugger = Debugger::new();

// Visualize C AST
let ast_output = debugger.visualize_c_ast(Path::new("example.c"))?;
println!("{}", ast_output);

// Show ownership graph
let ownership_output = debugger.visualize_ownership(Path::new("example.c"))?;
println!("{}", ownership_output);
# Ok(())
# }