Skip to content

Commit 118d02e

Browse files
committed
chore: add Visual Studio Code LLDB config for the Rust demo
1 parent c420ff7 commit 118d02e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

demos/rust/.vscode/launch.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,18 @@
77
{
88
"type": "lldb",
99
"request": "launch",
10-
"name": "Debug",
11-
"program": "${workspaceFolder}/target/debug/rust_demo",
10+
"name": "run rust demo",
11+
"cargo": {
12+
"args": [
13+
"build",
14+
"--bin=rust_demo",
15+
"--package=rust_demo",
16+
],
17+
"filter": {
18+
"name": "rust_demo",
19+
"kind": "bin",
20+
},
21+
},
1222
"args": [],
1323
"cwd": "${workspaceFolder}"
1424
}

demos/rust/.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"debugVisualizer.debugAdapterConfigurations": {
3+
"lldb": {
4+
"expressionTemplate": "${expr}",
5+
"context": "watch"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)