Skip to content

Commit 4d98abb

Browse files
committed
Set RUST_BACKTRACE=1 when using the debugger.
1 parent 4fca865 commit 4d98abb

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.vscode/launch.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"options": ["init", "inspect", "list", "search"],
1212
"default": "search"
1313
},
14+
// Actually, exactly one argument of the subcommand. Dang it...
1415
{
1516
"id": "enterOptions",
1617
"description": "Pass flag and option arguments",
@@ -34,7 +35,10 @@
3435
}
3536
},
3637
"args": ["${input:enterCommand}", "${input:enterOptions}"],
37-
"cwd": "${workspaceFolder}"
38+
"cwd": "${workspaceFolder}",
39+
"env": {
40+
"RUST_BACKTRACE": "1"
41+
}
3842
},
3943
{
4044
"type": "lldb",
@@ -53,7 +57,10 @@
5357
}
5458
},
5559
"args": [],
56-
"cwd": "${workspaceFolder}"
60+
"cwd": "${workspaceFolder}",
61+
"env": {
62+
"RUST_BACKTRACE": "1"
63+
}
5764
}
5865
]
59-
}
66+
}

0 commit comments

Comments
 (0)