You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug on emulator by default when multiple devices/emulators attached
When there are multiple devices/emulators, calling `tns debug android` will fail that multiple devices are attached.
This break VS Code as previous code of CLI has been using emulators by default.
Fix this by using the most recent version (highest API Level) of running emulators, i.e. in case you have three Android emulators with version 5.1, 6.0 and 7.0, the one with 7.0 will be used for debugging.
this.$logger.warn(`Multiple emulators found. Starting debugger on emulator ${selectedEmulator.deviceInfo.identifier}. If you want to debug on specific device/emulator, you can specify it with --device option.`);
this.$errors.failWithoutHelp("Multiple devices found! To debug on specific device please select device with --device option.");
107
+
this.$options.emulator=true;
108
+
109
+
this.$logger.warn("Multiple devices found! Starting debugger on emulator. If you want to debug on specific device please select device with --device option.".yellow.bold);
0 commit comments