This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathnodeDebugInterfaces.d.ts
More file actions
58 lines (51 loc) · 2.19 KB
/
nodeDebugInterfaces.d.ts
File metadata and controls
58 lines (51 loc) · 2.19 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import {DebugProtocol} from 'vscode-debugprotocol';
import * as Core from 'vscode-chrome-debug-core';
type ConsoleType = "internalConsole" | "integratedTerminal" | "externalTerminal";
interface ICommonArgs {
stopOnEntry?: boolean;
address?: string;
timeout?: number;
}
/**
* This interface should always match the schema found in the node-debug extension manifest.
*/
export interface LaunchRequestArguments extends Core.ILaunchRequestArgs, ICommonArgs {
/** An absolute path to the program to debug. */
program: string;
/** Optional arguments passed to the debuggee. */
args?: string[];
/** Launch the debuggee in this working directory (specified as an absolute path). If omitted the debuggee is lauched in its own directory. */
cwd: string;
/** Absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. */
runtimeExecutable?: string;
/** Optional arguments passed to the runtime executable. */
runtimeArgs?: string[];
/** Optional environment variables to pass to the debuggee. The string valued properties of the 'environmentVariables' are used as key/value pairs. */
env?: { [key: string]: string; };
/** Where to launch the debug target. */
console?: ConsoleType;
/** Manually selected debugging port */
port?: number;
/** Logging options */
diagnosticLogging?: boolean;
verboseDiagnosticLogging?: boolean;
}
/**
* This interface should always match the schema found in the node-debug extension manifest.
*/
export interface AttachRequestArguments extends Core.IAttachRequestArgs, ICommonArgs {
/** Request frontend to restart session on termination. */
restart?: boolean;
/** Node's root directory. */
remoteRoot?: string;
/** VS Code's root directory. */
localRoot?: string;
/** Send a USR1 signal to this process. */
processId?: string;
/** Optional cwd for sourceMapPathOverrides resolution */
cwd?: string;
}
export type NodeDebugError = DebugProtocol.Message & Error;