@@ -4,7 +4,7 @@ import * as path from "path";
44import * as log4js from "log4js" ;
55import { ChildProcess } from "child_process" ;
66import { 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" ;
88import { getPidFromiOSSimulatorLogs } from "../common/helpers" ;
99
1010import byline = require( "byline" ) ;
@@ -13,7 +13,6 @@ const inspectorBackendPort = 18181;
1313const inspectorAppName = "NativeScript Inspector.app" ;
1414const inspectorNpmPackageName = "tns-ios-inspector" ;
1515const inspectorUiDir = "WebInspectorUI/" ;
16- const TIMEOUT_SECONDS = 9 ;
1716
1817class IOSDebugService extends DebugServiceBase implements IPlatformDebugService {
1918 private _lldbProcess : ChildProcess ;
@@ -176,7 +175,7 @@ class IOSDebugService extends DebugServiceBase implements IPlatformDebugService
176175 }
177176
178177 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 ) ;
180179 return this . wireDebuggerClient ( debugData , debugOptions , device ) ;
181180 }
182181
@@ -188,7 +187,7 @@ class IOSDebugService extends DebugServiceBase implements IPlatformDebugService
188187 }
189188
190189 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 ) ;
192191 return this . wireDebuggerClient ( debugData , debugOptions , device ) ;
193192 }
194193
0 commit comments