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            "env": {
12                "ZED_SERVER_URL": "http://localhost:8080"
13            },
14            "cargo": {
15                "args": [
16                    "build",
17                    "--bin=Zed",
18                    "--package=zed"
19                ],
20                "filter": {
21                    "name": "Zed",
22                    "kind": "bin"
23                }
24            },
25            "args": [
26                "${workspaceFolder}"
27            ],
28            "cwd": "${workspaceFolder}"
29        },
30        {
31            "type": "lldb",
32            "request": "launch",
33            "name": "Debug unit tests in executable 'zed'",
34            "cargo": {
35                "args": [
36                    "test",
37                    "--no-run",
38                    "--bin=zed",
39                    "--package=zed"
40                ],
41                "filter": {
42                    "name": "zed",
43                    "kind": "bin"
44                }
45            },
46            "args": [],
47            "cwd": "${workspaceFolder}"
48        },
49        {
50            "type": "lldb",
51            "request": "launch",
52            "name": "Debug unit tests in library 'gpui'",
53            "cargo": {
54                "args": [
55                    "test",
56                    "--no-run",
57                    "--lib",
58                    "--package=gpui"
59                ],
60                "filter": {
61                    "name": "gpui",
62                    "kind": "lib"
63                }
64            },
65            "args": [],
66            "cwd": "${workspaceFolder}"
67        }
68    ]
69}