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
29 lines (26 loc) · 1.01 KB
/
DebugClient.ts
File metadata and controls
29 lines (26 loc) · 1.01 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
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";
export enum DebugType {
Local,
Remote
}
export abstract class DebugClient {
protected debugSession: DebugSession;
constructor(args: any, debugSession: DebugSession) {
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();
}
}