simvx.ide.debug_session¶
Debug session — DAP client lifecycle, breakpoint sync, IDE menu actions.
Module Contents¶
Classes¶
Owns the active debug session and exposes IDE menu/run actions. |
Data¶
API¶
- simvx.ide.debug_session.log¶
‘getLogger(…)’
- class simvx.ide.debug_session.DebugSession(state: simvx.ide.state.State, config: simvx.ide.config.Config, ide: simvx.ide.app.Root | None = None)[source]¶
Owns the active debug session and exposes IDE menu/run actions.
Creates/destroys DAPClient instances per session, syncs breakpoints from State, caches thread/stack/scope/variable data for the UI, and provides the run/debug action handlers used by menu items and shortcuts.
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.