Skip to main content

Module debug

Module debug 

Source
Expand description

Read-only debug snapshots for the frontend’s egui debugger UI.

Plain-data structs the UI can hold for the lifetime of a frame without borrowing into the emulator. The accessors on crate::Nes produce these once per visible frame at 60 Hz; a few KiB of cloning is cheap compared to actually running a frame.

Determinism contract: opening the debugger must NOT alter the emulator’s deterministic state. Every method in this module is read-only.

Structs§

ApuDebugView
Snapshot of APU channel outputs and frame counter.
CpuDebugView
Snapshot of CPU register file.
MapperDebugInfo
Read-only debug snapshot of mapper-internal state for the UI.
PpuDebugView
Snapshot of PPU state.

Type Aliases§

MapperDebugView
Snapshot of mapper state — alias for rustynes_mappers::MapperDebugInfo.