Repository navigation
Expand file tree
/
Copy pathdebug-adapter.plugin.json
More file actions
96 lines (96 loc) · 2.75 KB
/
Copy pathdebug-adapter.plugin.json
File metadata and controls
96 lines (96 loc) · 2.75 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
94
95
96
{
"schemaVersion": 0,
"id": "dev.lithe.fixture.debug-adapter",
"displayName": "Debug Adapter Fixture",
"version": "0.1.0",
"pluginAPIVersion": 0,
"requires": { "debugAdapters": 0, "settings": 0 },
"vendor": {
"id": "org.example",
"displayName": "Example",
"signatureRequirement": "publisherPackage"
},
"permissions": [
"debug.attach",
"debug.launch"
],
"activationEvents": [
"onDebug:example",
"onDebug:native"
],
"languages": [],
"settings": [
{
"id": "program",
"type": "file",
"title": "Program",
"description": "The program to debug. Build it with debug information first, for example cc -g main.c -o main.",
"default": "",
"placeholder": "Found next to the open file",
"scope": "project",
"effect": "nextRun"
}
],
"debugAdapters": [
{
"id": "example",
"displayName": "Example Debugger",
"adapterID": "example-dap",
"requests": ["launch", "attach"],
"selectors": [{ "targetKinds": ["file"], "languageIDs": ["example"] }],
"configurationTypes": ["example"],
"configurations": {
"launch": {
"arguments": { "stopOnEntry": false },
"parametersSchema": "schemas/launch.json",
"targetBindings": { "program": "target.path", "cwd": "target.workingDirectory" }
},
"attach": {
"targetBindings": { "processId": "target.processID" }
}
},
"capabilities": { "disabled": ["supportsStepBack"] },
"console": {
"commandPrefix": "`",
"commands": [
{ "name": "breakpoint set", "description": "Set a breakpoint" },
{ "name": "frame variable" }
]
},
"launch": {
"process": {
"launch": { "kind": "packaged", "path": "bin/example-dap" },
"arguments": ["--stdio"]
},
"transport": "stdio"
}
},
{
"id": "native",
"displayName": "Native Debugger",
"adapterID": "native-dap",
"requests": ["launch"],
"selectors": [{ "targetKinds": ["file"], "languageIDs": ["example"] }],
"configurationTypes": ["native"],
"configurations": {
"launch": {
"arguments": { "stopOnEntry": false },
"targetBindings": { "program": "target.executable", "cwd": "target.workingDirectory" },
"executable": {
"setting": "program",
"candidates": [
"${fileDirectory}/${fileBasenameNoExtension}",
"${workspaceFolder}/build/${fileBasenameNoExtension}"
]
}
}
},
"launch": {
"process": {
"launch": { "kind": "systemCommand", "commands": ["native-dap"] }
},
"transport": "stdio"
}
}
]
}