MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / get_name_to_scope

Method get_name_to_scope

tests_python/test_debugger_json.py:450–463  ·  view source on GitHub ↗
(self, frame_id)

Source from the content-addressed store, hash-verified

448 return set_variable_response
449
450 def get_name_to_scope(self, frame_id):
451 scopes_request = self.write_request(pydevd_schema.ScopesRequest(pydevd_schema.ScopesArguments(frame_id)))
452
453 scopes_response = self.wait_for_response(scopes_request)
454
455 scopes = scopes_response.body.scopes
456 name_to_scopes = dict((scope["name"], pydevd_schema.Scope(**scope)) for scope in scopes)
457
458 assert len(scopes) == 2
459 assert sorted(name_to_scopes.keys()) == ["Globals", "Locals"]
460 assert not name_to_scopes["Locals"].expensive
461 assert name_to_scopes["Locals"].presentationHint == "locals"
462
463 return name_to_scopes
464
465 def get_step_in_targets(self, frame_id):
466 request = self.write_request(pydevd_schema.StepInTargetsRequest(pydevd_schema.StepInTargetsArguments(frame_id)))

Callers 6

test_stack_and_variablesFunction · 0.95
test_hex_variablesFunction · 0.95
test_pause_and_continueFunction · 0.95

Calls 3

write_requestMethod · 0.95
wait_for_responseMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected