Interface Debugging.Observer
- Enclosing interface:
Debugging
public static interface Debugging.Observer
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterBlock(ExecutedBlock block) Receives an authorized graph contribution, never a rich step capture or an ordered event log.booleanafterStep(boolean completed, Optional<DecodedInstruction> instruction, OptionalInt nextAddress, Optional<StepView> capture) True requests an intentional stop after this truthful semantic step.booleanTrue requests an intentional stop before guest effects.default booleanWhether instruction-only execution may report truthful block facts instead of individual step callbacks.default voidReports isolated instrumentation failures; never requests a CPU stop.
-
Method Details
-
beforeStep
boolean beforeStep()True requests an intentional stop before guest effects. -
afterStep
boolean afterStep(boolean completed, Optional<DecodedInstruction> instruction, OptionalInt nextAddress, Optional<StepView> capture) True requests an intentional stop after this truthful semantic step. Instruction facts come from before execution; nextAddress is the actual resulting PC. Failed steps and interrupt-only boundaries must not invent decoded instructions or transitions. -
canBatchInstructions
default boolean canBatchInstructions()Whether instruction-only execution may report truthful block facts instead of individual step callbacks. Opt-in requires implementingafterBlock(ExecutedBlock)and retaining any stop policy at boundaries. Access tracking and full presentation capture always retain individual steps. -
afterBlock
Receives an authorized graph contribution, never a rich step capture or an ordered event log. Previously reported, unchanged facts may be omitted. New observers must receive all facts they need; every contribution includes the actual final instruction and its resulting PC transition. -
failed
Reports isolated instrumentation failures; never requests a CPU stop.
-