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
17 lines (16 loc) · 1001 Bytes
/
DebugFactory.ts
File metadata and controls
17 lines (16 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 {RemoteDebugClient} from "./RemoteDebugClient";
import {DebugClient} from "./DebugClient";
export function CreateLaunchDebugClient(launchRequestOptions: LaunchRequestArguments, debugSession: DebugSession): DebugClient {
return new LocalDebugClient(launchRequestOptions, debugSession);
}
export function CreateAttachDebugClient(attachRequestOptions: AttachRequestArguments, debugSession: DebugSession): DebugClient {
return new RemoteDebugClient(attachRequestOptions, debugSession);
}