launch.json

 1{
 2    // Use IntelliSense to learn about possible attributes.
 3    // Hover to view descriptions of existing attributes.
 4    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 5    "version": "0.2.0",
 6    "configurations": [
 7        {
 8            "type": "lldb",
 9            "request": "launch",
10            "name": "Debug executable 'zed'",
11            "cargo": {
12                "args": [
13                    "build",
14                    "--bin=zed",
15                    "--package=zed"
16                ],
17                "filter": {
18                    "name": "zed",
19                    "kind": "bin"
20                }
21            },
22            "args": [],
23            "cwd": "${workspaceFolder}"
24        },
25        {
26            "type": "lldb",
27            "request": "launch",
28            "name": "Debug unit tests in executable 'zed'",
29            "cargo": {
30                "args": [
31                    "test",
32                    "--no-run",
33                    "--bin=zed",
34                    "--package=zed"
35                ],
36                "filter": {
37                    "name": "zed",
38                    "kind": "bin"
39                }
40            },
41            "args": [],
42            "cwd": "${workspaceFolder}"
43        },
44        {
45            "type": "lldb",
46            "request": "launch",
47            "name": "Debug unit tests in library 'gpui'",
48            "cargo": {
49                "args": [
50                    "test",
51                    "--no-run",
52                    "--lib",
53                    "--package=gpui"
54                ],
55                "filter": {
56                    "name": "gpui",
57                    "kind": "lib"
58                }
59            },
60            "args": [],
61            "cwd": "${workspaceFolder}"
62        }
63    ]
64}