forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugClient.ts
More file actions
31 lines (27 loc) · 987 Bytes
/
DebugClient.ts
File metadata and controls
31 lines (27 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// tslint:disable:quotemark ordered-imports no-any no-empty
import { BaseDebugServer } from "../DebugServers/BaseDebugServer";
import { IPythonProcess, IDebugServer } from "../Common/Contracts";
import { DebugSession } from "vscode-debugadapter";
import { EventEmitter } from 'events';
import { IServiceContainer } from "../../ioc/types";
export enum DebugType {
Local,
Remote,
RunLocal
}
export abstract class DebugClient<T> extends EventEmitter {
protected debugSession: DebugSession;
constructor(protected args: T, debugSession: DebugSession) {
super();
this.debugSession = debugSession;
}
public abstract CreateDebugServer(pythonProcess?: IPythonProcess, serviceContainer?: IServiceContainer): BaseDebugServer ;
public get DebugType(): DebugType {
return DebugType.Local;
}
public Stop() {
}
public LaunchApplicationToDebug(dbgServer: IDebugServer): Promise<any> {
return Promise.resolve();
}
}