Add example file for launch.json

This commit is contained in:
Neeraj Gupta 2023-04-10 10:16:53 +05:30
parent 0cdbe8b88a
commit bc6327935c
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
3 changed files with 65 additions and 1 deletions

2
.gitignore vendored
View file

@ -16,7 +16,7 @@
.idea/
#Visual Studio Code related
.vscode/
.vscode/launch.json
# Flutter/Dart/Pub related
**/doc/api/

50
.vscode/launch.json.example vendored Normal file
View file

@ -0,0 +1,50 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Android Prod",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"program": "lib/main.dart",
"args": [
"--flavor",
"independent"
]
},
{
"name": "Android Local",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"program": "lib/main.dart",
"args": [
"--flavor",
"independent",
"--dart-define",
"endpoint=http://localhost:8080",
]
},
{
"name": "iOS Prod",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"program": "lib/main.dart"
},
{
"name": "iOS Local",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"program": "lib/main.dart",
"args": [
"--dart-define",
"endpoint=http://localhost:8080",
]
},
]
}

View file

@ -0,0 +1,14 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart",
"program": "example/lib/main.dart"
}
]
}