forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugClient.ts
More file actions
32 lines (29 loc) · 1.09 KB
/
DebugClient.ts
File metadata and controls
32 lines (29 loc) · 1.09 KB
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
32
import {BaseDebugServer} from "../DebugServers/BaseDebugServer";
import {LocalDebugServer} from "../DebugServers/LocalDebugServer";
import {IPythonProcess, IPythonThread, IDebugServer} from "../Common/Contracts";
import {DebugSession, OutputEvent} from "vscode-debugadapter";
import * as path from "path";
import * as child_process from "child_process";
import {DjangoApp, LaunchRequestArguments, AttachRequestArguments} from "../Common/Contracts";
import {EventEmitter} from 'events';
export enum DebugType {
Local,
Remote,
RunLocal
}
export abstract class DebugClient extends EventEmitter {
protected debugSession: DebugSession;
constructor(args: any, debugSession: DebugSession) {
super();
this.debugSession = debugSession;
}
public abstract CreateDebugServer(pythonProcess: IPythonProcess): BaseDebugServer;
public get DebugType(): DebugType {
return DebugType.Local;
}
public Stop() {
}
public LaunchApplicationToDebug(dbgServer: IDebugServer, processErrored: (error: any) => void): Promise<any> {
return Promise.resolve();
}
}