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

Method write_set_variable

tests_python/test_debugger_json.py:433–448  ·  view source on GitHub ↗
(self, frame_variables_reference, name, value, success=True)

Source from the content-addressed store, hash-verified

431 self.wait_for_response(stepout_request)
432
433 def write_set_variable(self, frame_variables_reference, name, value, success=True):
434 set_variable_request = self.write_request(
435 pydevd_schema.SetVariableRequest(
436 pydevd_schema.SetVariableArguments(
437 frame_variables_reference,
438 name,
439 value,
440 )
441 )
442 )
443 set_variable_response = self.wait_for_response(set_variable_request)
444 if set_variable_response.success != success:
445 raise AssertionError(
446 "Expected %s. Found: %s\nResponse: %s\n" % (success, set_variable_response.success, set_variable_response.to_json())
447 )
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)))

Callers 12

test_stack_and_variablesFunction · 0.95
test_pause_and_continueFunction · 0.95
test_wait_for_attachFunction · 0.95
test_attach_to_pidFunction · 0.95
test_access_tokenFunction · 0.95
test_global_scopeFunction · 0.95
_check_listFunction · 0.80
_check_tupleFunction · 0.80
_check_dict_subclassFunction · 0.80
_check_setFunction · 0.80

Calls 3

write_requestMethod · 0.95
wait_for_responseMethod · 0.95
to_jsonMethod · 0.45

Tested by

no test coverage detected