File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -202,16 +202,21 @@ class IOSDebugService implements IDebugService {
202
202
} catch ( e ) {
203
203
this . $errors . failWithoutHelp ( `The application ${ projectId } timed out when performing the NativeScript debugger handshake.` ) ;
204
204
}
205
+ this . readyForAttachAction ( iosDevice ) . wait ( ) ;
205
206
break ;
206
207
case readyForAttach :
207
- createWebSocketProxy ( this . $logger , ( callback ) => connectEventually ( ( ) => iosDevice . connectToPort ( InspectorBackendPort ) , callback ) ) ;
208
- this . executeOpenDebuggerClient ( ) . wait ( ) ;
208
+ this . readyForAttachAction ( iosDevice ) . wait ( ) ;
209
209
break ;
210
210
}
211
211
} ) . future < void > ( ) ( ) ) . wait ( ) ;
212
212
} ) . future < void > ( ) ( ) ;
213
213
}
214
214
215
+ private readyForAttachAction ( iosDevice : iOSDevice . IOSDevice ) : IFuture < void > {
216
+ createWebSocketProxy ( this . $logger , ( callback ) => connectEventually ( ( ) => iosDevice . connectToPort ( InspectorBackendPort ) , callback ) ) ;
217
+ return this . executeOpenDebuggerClient ( ) ;
218
+ }
219
+
215
220
public executeOpenDebuggerClient ( ) : IFuture < void > {
216
221
if ( this . $options . client ) {
217
222
return this . openDebuggingClient ( ) ;
You can’t perform that action at this time.
0 commit comments