0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RUST(VSCode) package内に複数ファイルがある場合のDebug設定

Last updated at Posted at 2020-07-25

RUST(VSCode) package内に複数ファイルがある場合のDebug設定

package内に複数ファイルがある時
image.png

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が、デバッグ起動画面に出てくる。

デバッグ設定
image.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?