Skip to content

Commit 21351c7

Browse files
PanayotCankovFatme Havaluova
authored and
Fatme Havaluova
committed
Switch the debugging on emulator for iOS to use the iOSEmulatorService so that it can benefit from logging in the terminal.
Conflicts: docs/man_pages/project/testing/debug-ios.md
1 parent cecb7a9 commit 21351c7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/services/ios-debug-service.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ class IOSDebugService implements IDebugService {
6666

6767
private emulatorDebugBrk(): IFuture<void> {
6868
return (() => {
69-
var device = this.getRunningEmulatorOrRunNew().wait();
7069
var platformData = this.$platformsData.getPlatformData(this.platform);
7170
this.$platformService.buildPlatform(this.platform).wait();
7271
var emulatorPackage = this.$platformService.getLatestApplicationPackageForEmulator(platformData).wait();
73-
device.installApp(emulatorPackage.packageName).wait();
7472
this.executeOpenDebuggerClient().wait();
75-
device.launchApp(this.$projectData.projectId, "--nativescript-debug-brk").wait();
73+
this.$iOSEmulatorServices.startEmulator(emulatorPackage.packageName, { args: "--nativescript-debug-brk" }).wait();
7674
}).future<void>()();
7775
}
7876

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"gaze": "0.5.1",
3737
"iconv-lite": "0.4.4",
3838
"inquirer": "0.8.2",
39-
"ios-sim-portable": "1.0.5",
39+
"ios-sim-portable": "1.0.6",
4040
"lockfile": "1.0.0",
4141
"lodash": "3.6.0",
4242
"log4js": "0.6.22",

0 commit comments

Comments
 (0)