6
6

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 5 years have passed since last update.

Flutter VSCodeでデバッグする際にオプションを追加する

Posted at

開発環境を変更する際にflutter run --targetで切り替えを行なっていますが
VSCodeのF5デバッグでも設定できないかと思い調べたのでメモ。

Debug ->Open Configuration ->launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Flutter",
            "request": "launch",
            "type": "dart",
            "args": [
                "--target",
                "lib/main_stg.dart",
                "--flavor",
                "staging"
            ]
        }
    ]
}

flutter runに渡すオプションはここで設定できるのでflavorも渡せますね

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?