RUST(VSCode) package内に複数ファイルがある場合のDebug設定
cargo.toml
qiita.rb
name = "main03_01"
path = "src/main03_01.rs"
launch.jsonの書き方をメモ
launch.json
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug main03_02",
"cargo": {
"args": [
"build",
"--bin=main03_02",
"--package=sample03"
],
"filter": {
"name": "main03_02",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug main03_01",
"cargo": {
"args": [
"build",
"--bin=main03_01",
"--package=sample03"
],
"filter": {
"name": "main03_01",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
configlation内のnameが、デバッグ起動画面に出てくる。