Last active
June 10, 2020 13:57
-
-
Save samuelematias/ce9e474dd87186f37898f6f6160a1cf2 to your computer and use it in GitHub Desktop.
[Flutter] Open 2 devices in debug mode on VsCode.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To get your devideId follow this steps: | |
//1 - Open your emulator/simulator (Android/iOS/Browser) | |
//2 - Run on terminal "flutter devices" | |
//3 - Get de deviceId (second param: https://i.imgur.com/dZHsyrc.png) | |
// More infos: https://github.com/flutter/flutter/wiki/Multi-device-debugging-in-VS-Code | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Android", | |
"request": "launch", | |
"type": "dart", | |
"deviceId": "emulator-5554", | |
"args": ["--flavor", "dev"], //if you dont use flavors remove this line | |
"program": "lib/main_dev.dart" //if you dont use flavors remove this line | |
}, | |
{ | |
"name": "iPhone", | |
"request": "launch", | |
"type": "dart", | |
"deviceId": "33A341AF-200A-4E94-AF80-4DDE3FFB55F8", | |
"args": ["--flavor", "dev"], //if you dont use flavors remove this line | |
"program": "lib/main_dev.dart" //if you dont use flavors remove this line | |
} | |
], | |
"compounds": [ | |
{ | |
"name": "All Devices", | |
"configurations": ["Android", "iPhone"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment