@@ -202,7 +202,7 @@ export class IOSDebugService extends DebugServiceBase implements IPlatformDebugS
202
202
// the VSCode Ext starts `tns debug ios --no-client` to start/attach to debug sessions
203
203
// check if --no-client is passed - default to opening a tcp socket (versus Chrome DevTools (websocket))
204
204
if ( ( debugOptions . inspector || ! debugOptions . client ) && this . $hostInfo . isDarwin ) {
205
- this . _socketProxy = await this . $socketProxyFactory . createTCPSocketProxy ( this . getSocketFactory ( debugData , device ) ) ;
205
+ this . _socketProxy = await this . $socketProxyFactory . createTCPSocketProxy ( this . getSocketFactory ( device , debugData , debugOptions ) ) ;
206
206
await this . openAppInspector ( this . _socketProxy . address ( ) , debugData , debugOptions ) ;
207
207
return null ;
208
208
} else {
@@ -211,7 +211,7 @@ export class IOSDebugService extends DebugServiceBase implements IPlatformDebugS
211
211
}
212
212
213
213
const deviceIdentifier = device ? device . deviceInfo . identifier : debugData . deviceIdentifier ;
214
- this . _socketProxy = await this . $socketProxyFactory . createWebSocketProxy ( this . getSocketFactory ( debugData , device ) , deviceIdentifier ) ;
214
+ this . _socketProxy = await this . $socketProxyFactory . createWebSocketProxy ( this . getSocketFactory ( device , debugData , debugOptions ) , deviceIdentifier ) ;
215
215
return this . getChromeDebugUrl ( debugOptions , this . _socketProxy . options . port ) ;
216
216
}
217
217
}
@@ -230,9 +230,9 @@ export class IOSDebugService extends DebugServiceBase implements IPlatformDebugS
230
230
}
231
231
}
232
232
233
- private getSocketFactory ( debugData : IDebugData , device ?: Mobile . IiOSDevice ) : ( ) => Promise < net . Socket > {
233
+ private getSocketFactory ( device : Mobile . IiOSDevice , debugData : IDebugData , debugOptions : IDebugOptions ) : ( ) => Promise < net . Socket > {
234
234
const factory = async ( ) => {
235
- const port = await this . $iOSDebuggerPortService . getPort ( { projectDir : debugData . projectDir , deviceId : debugData . deviceIdentifier , appId : debugData . applicationIdentifier } ) ;
235
+ const port = await this . $iOSDebuggerPortService . getPort ( { projectDir : debugData . projectDir , deviceId : debugData . deviceIdentifier , appId : debugData . applicationIdentifier } , debugOptions ) ;
236
236
if ( ! port ) {
237
237
this . $errors . fail ( "NativeScript debugger was not able to get inspector socket port." ) ;
238
238
}
0 commit comments