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                "${workspaceFolder}"
24            ],
25            "cwd": "${workspaceFolder}"
26        },
27        {
28            "type": "lldb",
29            "request": "launch",
30            "name": "Debug unit tests in executable 'zed'",
31            "cargo": {
32                "args": [
33                    "test",
34                    "--no-run",
35                    "--bin=zed",
36                    "--package=zed"
37                ],
38                "filter": {
39                    "name": "zed",
40                    "kind": "bin"
41                }
42            },
43            "args": [],
44            "cwd": "${workspaceFolder}"
45        },
46        {
47            "type": "lldb",
48            "request": "launch",
49            "name": "Debug unit tests in library 'gpui'",
50            "cargo": {
51                "args": [
52                    "test",
53                    "--no-run",
54                    "--lib",
55                    "--package=gpui"
56                ],
57                "filter": {
58                    "name": "gpui",
59                    "kind": "lib"
60                }
61            },
62            "args": [],
63            "cwd": "${workspaceFolder}"
64        }
65    ]
66}