MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _evaluate_response

Function _evaluate_response

_pydevd_bundle/pydevd_comm.py:1157–1168  ·  view source on GitHub ↗
(py_db, request, result, error_message="")

Source from the content-addressed store, hash-verified

1155
1156
1157def _evaluate_response(py_db, request, result, error_message=""):
1158 is_error = isinstance(result, ExceptionOnEvaluate)
1159 if is_error:
1160 result = result.result
1161 if not error_message:
1162 body = pydevd_schema.EvaluateResponseBody(result=result, variablesReference=0)
1163 variables_response = pydevd_base_schema.build_response(request, kwargs={"body": body})
1164 py_db.writer.add_command(NetCommand(CMD_RETURN, 0, variables_response, is_json=True))
1165 else:
1166 body = pydevd_schema.EvaluateResponseBody(result=result, variablesReference=0)
1167 variables_response = pydevd_base_schema.build_response(request, kwargs={"body": body, "success": False, "message": error_message})
1168 py_db.writer.add_command(NetCommand(CMD_RETURN, 0, variables_response, is_json=True))
1169
1170
1171_global_frame = None

Calls 2

NetCommandClass · 0.90
add_commandMethod · 0.45

Tested by

no test coverage detected