MCPcopy Create free account
hub / github.com/Marus/cortex-debug / startComplete

Method startComplete

src/gdb.ts:772–783  ·  view source on GitHub ↗
(mode: SessionMode, sendStoppedEvents = true)

Source from the content-addressed store, hash-verified

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) => {

Callers 4

startCompleteForResetMethod · 0.95
finishStartSequenceMethod · 0.95
doResolveMethod · 0.95

Calls 2

sendEventMethod · 0.95
notifyStoppedMethod · 0.95

Tested by

no test coverage detected