(self, request, response)
| 676 | raise request.isnt_valid("not supported") |
| 677 | |
| 678 | def _process_response(self, request, response): |
| 679 | self.timeline.record_response(request, response, block=False) |
| 680 | if request.command == "disconnect": |
| 681 | # Stop the message loop, since debugpy is going to close the connection |
| 682 | # from its end shortly after sending this event, and no further messages |
| 683 | # are expected. |
| 684 | log.info( |
| 685 | 'Received "disconnect" response from {0}; stopping message processing.', |
| 686 | self.adapter_id, |
| 687 | ) |
| 688 | try: |
| 689 | self.channel.close() |
| 690 | except Exception: |
| 691 | pass |
| 692 | |
| 693 | def _process_disconnect(self): |
| 694 | self.timeline.mark("disconnect", block=False) |
no test coverage detected