Skip to content

Commit e3ce4e6

Browse files
Mitko-Kerezovrosen-vladimirov
authored andcommitted
Revert "Restart app upon debugging" (#2898)
This reverts commit 5b1141c. In case a second debug attempt fails just throw the error.
1 parent 8cef8da commit e3ce4e6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/services/debug-service.ts

-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export class DebugService extends EventEmitter implements IDebugService {
88
private $androidDebugService: IPlatformDebugService,
99
private $iOSDebugService: IPlatformDebugService,
1010
private $errors: IErrors,
11-
private $logger: ILogger,
1211
private $hostInfo: IHostInfo,
1312
private $mobileHelper: Mobile.IMobileHelper) {
1413
super();
@@ -30,14 +29,6 @@ export class DebugService extends EventEmitter implements IDebugService {
3029
this.$errors.failWithoutHelp(`The application ${debugData.applicationIdentifier} is not installed on device with identifier ${debugData.deviceIdentifier}.`);
3130
}
3231

33-
if (this.$mobileHelper.isiOSPlatform(device.deviceInfo.platform)) {
34-
try {
35-
await device.applicationManager.restartApplication(debugData.applicationIdentifier, debugData.projectName);
36-
} catch (err) {
37-
this.$logger.trace("Failed to restart app", err);
38-
}
39-
}
40-
4132
const debugOptions: IDebugOptions = _.merge({}, options);
4233
debugOptions.start = true;
4334

0 commit comments

Comments
 (0)