simvx.ide.dap.manager¶
Debug session and breakpoint manager – coordinates DAPClient with IDE state.
Module Contents¶
Classes¶
High-level debug session manager. |
Data¶
API¶
- class simvx.ide.dap.manager.DebugManager(state: simvx.ide.state.IDEState, config: simvx.ide.config.IDEConfig)[source]¶
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
- evaluate(expr: str, callback=None)[source]¶
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)[source]¶
Set or clear a condition on a breakpoint.
- get_breakpoint_condition(path: str, line: int) str[source]¶
Get the condition for a breakpoint, or empty string.
- get_conditions_for_file(path: str) dict[int, str][source]¶
Get all conditions for a file as {line: condition}.
- select_frame(frame_index: int)[source]¶
Select a stack frame by index, refreshing scopes and variables.
- fetch_variables(variables_ref: int, callback=None)[source]¶
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]]]¶