You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the limited ruchydbg macro with a comprehensive debugging system for the Ruchy runtime. The current system lacks granular control, structured output, and integration with standard tools.
Features to Implement
1. Structured Logging & Tracing
Replace println! based debugging with tracing crate.
Objective
Replace the limited
ruchydbgmacro with a comprehensive debugging system for the Ruchy runtime. The current system lacks granular control, structured output, and integration with standard tools.Features to Implement
1. Structured Logging & Tracing
println!based debugging withtracingcrate.RUCHY_LOGlevels (error, warn, info, debug, trace).2. Interactive Debugger (CLI)
ruchy debug script.ruchy).step,next,continue,break <line>,inspect <var>.3. AST & Bytecode Inspection
--dump-astflag to visualize the parsed AST (JSON/Graphviz).--dump-bytecodeflag to see the compiled instructions before execution.4. Remote Debugging (DAP) - Future
Implementation Plan
tracingandtracing-subscriberdependencies.ruchydbg!to usetracing::debug!.DebugContextstruct to track breakpoints and execution state.debug_cmd.rsfor the interactive CLI.ParserandCompilerto support inspection flags.Success Criteria