(mode: SessionMode, sendStoppedEvents = true)
| 770 | } |
| 771 | |
| 772 | private startComplete(mode: SessionMode, sendStoppedEvents = true) { |
| 773 | this.disableSendStoppedEvents = false; |
| 774 | this.continuing = false; |
| 775 | this.stopped = this.miDebugger.status !== 'running'; // Set to real status |
| 776 | if (sendStoppedEvents && !this.args.noDebug && this.stopped) { |
| 777 | this.stoppedReason = mode; |
| 778 | this.stoppedThreadId = this.currentThreadId; |
| 779 | // We have to fake a continue and then stop, since we may already be in stopped mode in VSCode's view |
| 780 | this.sendEvent(new ContinuedEvent(this.currentThreadId, true)); |
| 781 | this.notifyStopped(); |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | private finishStartSequence(mode: SessionMode): Promise<void> { |
| 786 | return new Promise<void>(async (resolve) => { |
no test coverage detected