Skip to content

Commit c2d261a

Browse files
author
Fatme
authored
Merge pull request #3837 from NativeScript/fatme/fix-ios-emulator-debugger
Fix connect to port
2 parents 9b5b6ca + 6a7dda1 commit c2d261a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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
};

npm-shrinkwrap.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nativescript",
33
"preferGlobal": true,
4-
"version": "4.2.2",
4+
"version": "4.2.3",
55
"author": "Telerik <[email protected]>",
66
"description": "Command-line interface for building NativeScript projects",
77
"bin": {

0 commit comments

Comments
 (0)