Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 5134c4a

Browse files
committed
Merge pull request #317 from telerik/cankov/debug-and-log-emulator
Switch the debugging on emulator for iOS to use the iOSEmulatorService
2 parents f76634d + 31e6a57 commit 5134c4a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

definitions/mobile.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ declare module Mobile {
250250
stderrFilePath?: string;
251251
stdoutFilePath?: string;
252252
appId?: string;
253+
args?: string
253254
}
254255

255256
interface IPlatformsCapabilities {

mobile/ios/ios-emulator-services.ts

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ class IosEmulatorServices implements Mobile.IEmulatorPlatformServices {
8585
opts = opts.concat("--device", options.device);
8686
}
8787

88+
if (emulatorOptions.args) {
89+
opts.push(util.format("--args=\"%s\"", emulatorOptions.args));
90+
}
91+
8892
this.$childProcess.spawn(nodeCommandName, opts, { stdio: "inherit" });
8993
}
9094
}

0 commit comments

Comments
 (0)