Skip to content

Fix not starting emulator during debug command #2917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions lib/commands/debug.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export abstract class DebugPlatformCommand implements ICommand {
export abstract class DebugPlatformCommand implements ICommand {
public allowedParameters: ICommandParameter[] = [];
public platform: string;

Expand Down Expand Up @@ -29,9 +29,6 @@

this.$config.debugLivesync = true;

await this.$devicesService.initialize({

});
await this.$devicesService.detectCurrentlyAttachedDevices();

const devices = this.$devicesService.getDeviceInstances();
Expand Down Expand Up @@ -86,9 +83,9 @@
platform: this.platform,
deviceId: this.$options.device,
emulator: this.$options.emulator,
skipDeviceDetectionInterval: true,
skipInferPlatform: true
skipDeviceDetectionInterval: true
});

// Start emulator if --emulator is selected or no devices found.
if (this.$options.emulator || this.$devicesService.deviceCount === 0) {
return true;
Expand Down