Skip to content

Commit 4a9c967

Browse files
committed
fix: fix typo error in debugggingEnabled
1 parent 29d7ad9 commit 4a9c967

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

lib/controllers/run-on-devices-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class RunOnDevicesController extends EventEmitter {
4747
isFullSync: liveSyncResultInfo.isFullSync
4848
});
4949

50-
if (liveSyncResultInfo && deviceDescriptor.debugggingEnabled) {
50+
if (liveSyncResultInfo && deviceDescriptor.debuggingEnabled) {
5151
await this.$deviceDebugAppService.enableDebugging(projectData, deviceDescriptor, refreshInfo);
5252
}
5353

@@ -136,7 +136,7 @@ export class RunOnDevicesController extends EventEmitter {
136136
isFullSync: liveSyncResultInfo.isFullSync
137137
});
138138

139-
if (liveSyncResultInfo && deviceDescriptor.debugggingEnabled) {
139+
if (liveSyncResultInfo && deviceDescriptor.debuggingEnabled) {
140140
await this.$deviceDebugAppService.enableDebugging(projectData, deviceDescriptor, refreshInfo);
141141
}
142142
}

lib/helpers/deploy-command-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class DeployCommandHelper {
5353
const info: ILiveSyncDeviceInfo = {
5454
identifier: d.deviceInfo.identifier,
5555
buildAction,
56-
debugggingEnabled: additionalOptions && additionalOptions.deviceDebugMap && additionalOptions.deviceDebugMap[d.deviceInfo.identifier],
56+
debuggingEnabled: additionalOptions && additionalOptions.deviceDebugMap && additionalOptions.deviceDebugMap[d.deviceInfo.identifier],
5757
debugOptions: this.$options,
5858
outputPath,
5959
skipNativePrepare: additionalOptions && additionalOptions.skipNativePrepare,

lib/helpers/livesync-command-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
104104
const info: ILiveSyncDeviceInfo = {
105105
identifier: d.deviceInfo.identifier,
106106
buildAction,
107-
debugggingEnabled: additionalOptions && additionalOptions.deviceDebugMap && additionalOptions.deviceDebugMap[d.deviceInfo.identifier],
107+
debuggingEnabled: additionalOptions && additionalOptions.deviceDebugMap && additionalOptions.deviceDebugMap[d.deviceInfo.identifier],
108108
debugOptions: this.$options,
109109
outputPath,
110110
skipNativePrepare: additionalOptions && additionalOptions.skipNativePrepare,
@@ -115,7 +115,7 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
115115

116116
const liveSyncInfo: ILiveSyncInfo = {
117117
projectDir: this.$projectData.projectDir,
118-
skipWatcher: !this.$options.watch,
118+
skipWatcher: !this.$options.watch || this.$options.justlaunch,
119119
clean: this.$options.clean,
120120
release: this.$options.release,
121121
env: this.$options.env,

lib/services/device/device-debug-app-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class DeviceDebugAppService {
7171
this.$errors.failWithoutHelp(`Couldn't enable debugging for ${deviceOption.deviceIdentifier}`);
7272
}
7373

74-
deviceDescriptor.debugggingEnabled = true;
74+
deviceDescriptor.debuggingEnabled = true;
7575
deviceDescriptor.debugOptions = deviceOption.debugOptions;
7676
const currentDeviceInstance = this.$devicesService.getDeviceByIdentifier(deviceOption.deviceIdentifier);
7777
const attachDebuggerOptions: IAttachDebuggerOptions = {

lib/services/device/device-refresh-app-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class DeviceRefreshAppService {
1212

1313
@performanceLog()
1414
public async refreshApplicationWithoutDebug(projectData: IProjectData, liveSyncResultInfo: ILiveSyncResultInfo, deviceDescriptor: ILiveSyncDeviceInfo, settings?: IRefreshApplicationSettings): Promise<IRestartApplicationInfo> {
15-
if (deviceDescriptor && deviceDescriptor.debugggingEnabled) {
15+
if (deviceDescriptor && deviceDescriptor.debuggingEnabled) {
1616
liveSyncResultInfo.waitForDebugger = deviceDescriptor.debugOptions && deviceDescriptor.debugOptions.debugBrk;
1717
}
1818

lib/services/test-execution-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ export class TestExecutionService implements ITestExecutionService {
7878
if (!this.$options.env) { this.$options.env = { }; }
7979
this.$options.env.unitTesting = true;
8080

81-
await this.$liveSyncCommandHelper.executeLiveSyncOperation(devices, this.platform, <any>{});
81+
const deviceDebugMap: IDictionary<boolean> = {};
82+
devices.forEach(device => deviceDebugMap[device.deviceInfo.identifier] = this.$options.debugBrk);
83+
84+
await this.$liveSyncCommandHelper.executeLiveSyncOperation(devices, this.platform, <any>{ deviceDebugMap });
8285
};
8386

8487
karmaRunner.on("message", (karmaData: any) => {

0 commit comments

Comments
 (0)