Skip to content

Instantly share code, notes, and snippets.

@samuelematias
Last active June 10, 2020 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelematias/ce9e474dd87186f37898f6f6160a1cf2 to your computer and use it in GitHub Desktop.
Save samuelematias/ce9e474dd87186f37898f6f6160a1cf2 to your computer and use it in GitHub Desktop.
[Flutter] Open 2 devices in debug mode on VsCode.
//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