提交 e50fe199 编写于 作者: I isidor

debug: listen on 'continued' event

fixes #9149
上级 e55338a1
......@@ -291,6 +291,10 @@ export class DebugService implements debug.IDebugService {
}
}));
this.toDisposeOnSessionEnd.push(this.session.onDidContinued(event => {
this.lazyTransitionToRunningState(event.body.allThreadsContinued ? undefined : event.body.threadId);
}));
this.toDisposeOnSessionEnd.push(this.session.onDidOutput(event => {
if (event.body && event.body.category === 'telemetry') {
// only log telemetry events from debug adapter if the adapter provided the telemetry key
......
......@@ -56,6 +56,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
private _onDidInitialize: Emitter<DebugProtocol.InitializedEvent>;
private _onDidStop: Emitter<DebugProtocol.StoppedEvent>;
private _onDidContinued: Emitter<DebugProtocol.ContinuedEvent>;
private _onDidTerminateDebugee: Emitter<SessionTerminatedEvent>;
private _onDidExitAdapter: Emitter<SessionExitedEvent>;
private _onDidThread: Emitter<DebugProtocol.ThreadEvent>;
......@@ -78,6 +79,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
this._onDidInitialize = new Emitter<DebugProtocol.InitializedEvent>();
this._onDidStop = new Emitter<DebugProtocol.StoppedEvent>();
this._onDidContinued = new Emitter<DebugProtocol.ContinuedEvent>();
this._onDidTerminateDebugee = new Emitter<SessionTerminatedEvent>();
this._onDidExitAdapter = new Emitter<SessionExitedEvent>();
this._onDidThread = new Emitter<DebugProtocol.ThreadEvent>();
......@@ -94,6 +96,10 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
return this._onDidStop.event;
}
public get onDidContinued(): Event<DebugProtocol.ContinuedEvent> {
return this._onDidContinued.event;
}
public get onDidTerminateDebugee(): Event<SessionTerminatedEvent> {
return this._onDidTerminateDebugee.event;
}
......@@ -184,6 +190,8 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes
} else if (event.event === 'stopped') {
this.emittedStopped = true;
this._onDidStop.fire(<DebugProtocol.StoppedEvent>event);
} else if (event.event === 'continued') {
this._onDidContinued.fire(<DebugProtocol.ContinuedEvent>event);
} else if (event.event === 'thread') {
this._onDidThread.fire(<DebugProtocol.ThreadEvent>event);
} else if (event.event === 'output') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册