Skip to main content

DEFAULT_DEBUG_BUDGET

Constant DEFAULT_DEBUG_BUDGET 

Source
pub const DEFAULT_DEBUG_BUDGET: u64 = 200_000;
Expand description

Debug stepping’s own step budget ceiling — separate from the production step limit (FlowInstance::STEP_LIMIT = 1,000,000 per call). See the module doc’s “step-limit ruling” section for why this exists and what it does and doesn’t share with production accounting.

Chosen generous relative to a single step-into/step-over/breakpoint-run (ordinary stepping and running to a breakpoint a handful of frames away stays orders of magnitude under this), low enough that a predicate/loop that never satisfies its stop condition reports back in well under a second of VM-step work instead of hanging a studio UI indefinitely.