Skip to content

Commit 6a7dda1

Browse files
committed
Fix connect to port
1 parent 71b0a4e commit 6a7dda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-debug-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export class IOSDebugService extends DebugServiceBase implements IPlatformDebugS
236236
if (!port) {
237237
this.$errors.fail("NativeScript debugger was not able to get inspector socket port.");
238238
}
239-
const socket = device ? await device.connectToPort(port) : net.connect(port);
239+
const socket = device ? await device.connectToPort(port) : await this.$iOSEmulatorServices.connectToPort({ port });
240240
this._sockets.push(socket);
241241
return socket;
242242
};

0 commit comments

Comments
 (0)