:param wait_for_response: If True returns the response, otherwise returns the request. :returns EvaluateResponse
(self, expression, frameId=None, context=None, fmt=None, success=True, wait_for_response=True)
| 558 | return response |
| 559 | |
| 560 | def evaluate(self, expression, frameId=None, context=None, fmt=None, success=True, wait_for_response=True): |
| 561 | """ |
| 562 | :param wait_for_response: |
| 563 | If True returns the response, otherwise returns the request. |
| 564 | |
| 565 | :returns EvaluateResponse |
| 566 | """ |
| 567 | eval_request = self.write_request( |
| 568 | pydevd_schema.EvaluateRequest(pydevd_schema.EvaluateArguments(expression, frameId=frameId, context=context, format=fmt)) |
| 569 | ) |
| 570 | if wait_for_response: |
| 571 | eval_response = self.wait_for_response(eval_request) |
| 572 | assert eval_response.success == success |
| 573 | return eval_response |
| 574 | else: |
| 575 | return eval_request |
| 576 | |
| 577 | def write_terminate(self): |
| 578 | # Note: this currently terminates promptly, so, no answer is given. |
no test coverage detected