Add shared-session MCP source debugger adapter
This commit is contained in:
@@ -246,12 +246,15 @@ class DebugSession:
|
||||
return self.bridge.request('deactivate_breakpoints')
|
||||
|
||||
def clear_breakpoint(self, identifier: int) -> dict:
|
||||
ids = self.breakpoints.pop(identifier, None)
|
||||
ids = self.breakpoints.get(identifier)
|
||||
if ids is None:
|
||||
raise SessionError('Неизвестная логическая точка остановки')
|
||||
for backend_id in ids:
|
||||
backend_ids = list(ids)
|
||||
for backend_id in backend_ids:
|
||||
self.bridge.request('clear', id=backend_id)
|
||||
return {'cleared': identifier, 'backend_ids': ids}
|
||||
ids.remove(backend_id)
|
||||
self.breakpoints.pop(identifier)
|
||||
return {'cleared': identifier, 'backend_ids': backend_ids}
|
||||
|
||||
def read_variable(self, name: str, module: str | None = None) -> dict:
|
||||
matches = [variable for variable in self.model.variables
|
||||
|
||||
Reference in New Issue
Block a user