@@ -58,10 +58,7 @@ class IOSDebugService implements IDebugService {
5858 } else if ( this . $options . start ) {
5959 return this . deviceStart ( ) ;
6060 } else {
61- let deploy = this . $platformService . deployOnDevice ( this . platform ) ;
62- deploy . wait ( ) ;
63-
64- return this . deviceStart ( ) ;
61+ return this . deviceDebugBrk ( false ) ;
6562 }
6663 }
6764 }
@@ -121,18 +118,18 @@ class IOSDebugService implements IDebugService {
121118 }
122119 // we intentionally do not wait on this here, because if we did, we'd miss the AppLaunching notification
123120 let deploy = this . $platformService . deployOnDevice ( this . platform ) ;
124- this . debugBrkCore ( device ) . wait ( ) ;
121+ this . debugBrkCore ( device , shouldBreak ) . wait ( ) ;
125122 deploy . wait ( ) ;
126123 } ) . future < void > ( ) ( ) ) . wait ( ) ;
127124 } ) . future < void > ( ) ( ) ;
128125 }
129126
130- private debugBrkCore ( device : Mobile . IiOSDevice ) : IFuture < void > {
127+ private debugBrkCore ( device : Mobile . IiOSDevice , shouldBreak ?: boolean ) : IFuture < void > {
131128 return ( ( ) => {
132129 let timeout = this . $utils . getMilliSecondsTimeout ( TIMEOUT_SECONDS ) ;
133130 let readyForAttachTimeout = this . getReadyForAttachTimeout ( timeout ) ;
134131
135- this . $iOSSocketRequestExecutor . executeLaunchRequest ( device , timeout , readyForAttachTimeout ) . wait ( ) ;
132+ this . $iOSSocketRequestExecutor . executeLaunchRequest ( device , timeout , readyForAttachTimeout , shouldBreak ) . wait ( ) ;
136133 this . wireDebuggerClient ( ( ) => device . connectToPort ( inspectorBackendPort ) ) . wait ( ) ;
137134 } ) . future < void > ( ) ( ) ;
138135 }
0 commit comments