@@ -4,7 +4,7 @@ import * as path from "path";
4
4
import * as log4js from "log4js" ;
5
5
import { ChildProcess } from "child_process" ;
6
6
import { DebugServiceBase } from "./debug-service-base" ;
7
- import { CONNECTION_ERROR_EVENT_NAME } from "../constants" ;
7
+ import { CONNECTION_ERROR_EVENT_NAME , AWAIT_NOTIFICATION_TIMEOUT_SECONDS } from "../constants" ;
8
8
import { getPidFromiOSSimulatorLogs } from "../common/helpers" ;
9
9
10
10
import byline = require( "byline" ) ;
@@ -13,7 +13,6 @@ const inspectorBackendPort = 18181;
13
13
const inspectorAppName = "NativeScript Inspector.app" ;
14
14
const inspectorNpmPackageName = "tns-ios-inspector" ;
15
15
const inspectorUiDir = "WebInspectorUI/" ;
16
- const TIMEOUT_SECONDS = 9 ;
17
16
18
17
class IOSDebugService extends DebugServiceBase implements IPlatformDebugService {
19
18
private _lldbProcess : ChildProcess ;
@@ -176,7 +175,7 @@ class IOSDebugService extends DebugServiceBase implements IPlatformDebugService
176
175
}
177
176
178
177
private async debugBrkCore ( device : Mobile . IiOSDevice , debugData : IDebugData , debugOptions : IDebugOptions ) : Promise < string > {
179
- await this . $iOSSocketRequestExecutor . executeLaunchRequest ( device . deviceInfo . identifier , TIMEOUT_SECONDS , TIMEOUT_SECONDS , debugData . applicationIdentifier , debugOptions . debugBrk ) ;
178
+ await this . $iOSSocketRequestExecutor . executeLaunchRequest ( device . deviceInfo . identifier , AWAIT_NOTIFICATION_TIMEOUT_SECONDS , AWAIT_NOTIFICATION_TIMEOUT_SECONDS , debugData . applicationIdentifier , debugOptions . debugBrk ) ;
180
179
return this . wireDebuggerClient ( debugData , debugOptions , device ) ;
181
180
}
182
181
@@ -188,7 +187,7 @@ class IOSDebugService extends DebugServiceBase implements IPlatformDebugService
188
187
}
189
188
190
189
private async deviceStartCore ( device : Mobile . IiOSDevice , debugData : IDebugData , debugOptions : IDebugOptions ) : Promise < string > {
191
- await this . $iOSSocketRequestExecutor . executeAttachRequest ( device , TIMEOUT_SECONDS , debugData . applicationIdentifier ) ;
190
+ await this . $iOSSocketRequestExecutor . executeAttachRequest ( device , AWAIT_NOTIFICATION_TIMEOUT_SECONDS , debugData . applicationIdentifier ) ;
192
191
return this . wireDebuggerClient ( debugData , debugOptions , device ) ;
193
192
}
194
193
0 commit comments