simvx.ide.dap.manager

Debug session and breakpoint manager – coordinates DAPClient with IDE state.

Module Contents

Classes

DebugManager

High-level debug session manager.

Data

log

API

simvx.ide.dap.manager.log

‘getLogger(…)’

class simvx.ide.dap.manager.DebugManager(state: simvx.ide.state.IDEState, config: simvx.ide.config.IDEConfig)

High-level debug session manager.

Creates/destroys DAPClient instances per session, syncs breakpoints from IDEState, and caches thread/stack/scope/variable data for the UI.

Initialization

start_debug(path: str)

Start debugging a Python file.

stop_debug()

Stop the current debug session.

continue_execution()
step_over()
step_into()
step_out()
pause()
toggle_breakpoint(path: str, line: int)
evaluate(expr: str, callback=None)

Evaluate expression in the current frame context.

If callback is provided, the parsed result string (or dict on error) is forwarded to it instead of being emitted to debug_output.

set_breakpoint_condition(path: str, line: int, condition: str)

Set or clear a condition on a breakpoint.

get_breakpoint_condition(path: str, line: int) str

Get the condition for a breakpoint, or empty string.

select_frame(frame_index: int)

Select a stack frame by index, refreshing scopes and variables.

fetch_variables(variables_ref: int, callback=None)

Fetch variables for a scope or nested object.

property is_debugging: bool
property debug_state: str
property current_file: str
property current_line: int
property threads: list[dict[str, Any]]
property stack_frames: list[dict[str, Any]]
property scopes: list[dict[str, Any]]
property variables: dict[int, list[dict[str, Any]]]
process(dt: float)

Tick the DAP client to poll subprocess I/O.