forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugFactory.ts
More file actions
21 lines (20 loc) · 1.15 KB
/
DebugFactory.ts
File metadata and controls
21 lines (20 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 {LocalDebugClient} from "./LocalDebugClient";
import {NonDebugClient} from "./NonDebugClient";
import {RemoteDebugClient} from "./RemoteDebugClient";
import {DebugClient} from "./DebugClient";
export function CreateLaunchDebugClient(launchRequestOptions: LaunchRequestArguments, debugSession: DebugSession): DebugClient {
if (launchRequestOptions.noDebug === true) {
return new NonDebugClient(launchRequestOptions, debugSession);
}
return new LocalDebugClient(launchRequestOptions, debugSession);
}
export function CreateAttachDebugClient(attachRequestOptions: AttachRequestArguments, debugSession: DebugSession): DebugClient {
return new RemoteDebugClient(attachRequestOptions, debugSession);
}