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