Crate decy_debugger

Crate decy_debugger 

Source
Expand description

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;

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);

Modules§

step_debugger
Interactive step-through debugger
visualize_ast
C AST visualization for debugging
visualize_hir
HIR visualization for debugging
visualize_ownership
Ownership graph visualization

Structs§

Debugger
Main debugger interface for Decy transpiler