(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments)
| 603 | } |
| 604 | |
| 605 | protected pauseRequest(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments): void { |
| 606 | const thread = this.threadManager.getThreadInfoFromNumber(args.threadId); |
| 607 | |
| 608 | if (!thread) { |
| 609 | this.errorResponse(response, `No thread with id ${args.threadId}`); |
| 610 | return; |
| 611 | } |
| 612 | |
| 613 | if (!this.vmService) { |
| 614 | this.errorResponse(response, `No VM service connection`); |
| 615 | return; |
| 616 | } |
| 617 | |
| 618 | this.vmService.pause(thread.ref.id) |
| 619 | .then(() => { |
| 620 | this.sendResponse(response); |
| 621 | }) |
| 622 | .catch((error) => this.errorResponse(response, `${error}`)); |
| 623 | } |
| 624 | |
| 625 | protected sourceRequest(response: DebugProtocol.SourceResponse, args: DebugProtocol.SourceArguments): void { |
| 626 | const sourceReference = args.sourceReference; |
nothing calls this directly
no test coverage detected