forked from microsoft/vscode-node-debug2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodeDebugInterfaces.d.ts
More file actions
93 lines (79 loc) · 3.31 KB
/
nodeDebugInterfaces.d.ts
File metadata and controls
93 lines (79 loc) · 3.31 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*---------------------------------------------------------
* 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';
type OutputCaptureType = 'console' | 'std';
export interface ICommonRequestArgs extends Core.ICommonRequestArgs {
stopOnEntry?: boolean;
address?: string;
timeout?: number;
/** Optional cwd for sourceMapPathOverrides resolution */
cwd?: string;
/** Request frontend to restart session on termination. */
restart?: boolean;
/** Don't set breakpoints in JS files that don't have sourcemaps */
disableOptimisticBPs?: boolean;
}
/**
* This interface should always match the schema found in the node-debug extension manifest.
*/
export interface ILaunchRequestArguments extends Core.ILaunchRequestArgs, ICommonRequestArgs {
/** 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 | null; };
envFile?: string;
/** Where to launch the debug target. */
console?: ConsoleType;
/** Manually selected debugging port */
port?: number;
/** Source of the debug output */
outputCapture?: OutputCaptureType;
/** Use Windows Subsystem for Linux */
useWSL?: boolean;
runtimeVersion?: string;
/** Logging options */
diagnosticLogging?: boolean;
verboseDiagnosticLogging?: boolean;
// extensionHost option
__sessionId?: string;
// When node version is detected by node-debug
__nodeVersion?: string;
// A list of glob patterns that can be debugged by the extension.
__debuggablePatterns: string[];
}
/**
* This interface should always match the schema found in the node-debug extension manifest.
*/
export interface IAttachRequestArguments extends Core.IAttachRequestArgs, ICommonRequestArgs {
/** Node's root directory. */
remoteRoot?: string;
/** VS Code's root directory. */
localRoot?: string;
/** Send a USR1 signal to this process. */
processId?: string;
}
/**
* This interface represents a single command line argument split into a "prefix" and a "path" half.
* The optional "prefix" contains arbitrary text and the optional "path" contains a file system path.
* Concatenating both results in the original command line argument.
*/
export interface ILaunchVSCodeArgument {
prefix?: string;
path?: string;
}
export interface ILaunchVSCodeArguments {
args: ILaunchVSCodeArgument[];
env?: { [key: string]: string | null; };
}
export type NodeDebugError = DebugProtocol.Message & Error;