Skip to content

Commit f30e631

Browse files
fix: vscode debug is not working for iOS
VSCode debugging is not working on iOS when a change in .js is applied. The problem is that the server is reused for the new connections, but VSCode waits for message 'Opened localhost...' which is printed from CLI only when creating the new server.
1 parent d8d2f40 commit f30e631

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/device-sockets/ios/app-debug-socket-proxy-factory.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export class AppDebugSocketProxyFactory extends EventEmitter implements IAppDebu
152152
appDebugSocket.on("close", () => {
153153
this.$logger.info("Backend socket closed!");
154154
webSocket.close();
155+
server.close();
156+
delete this.deviceWebServers[cacheKey];
155157
});
156158

157159
webSocket.on("close", () => {

0 commit comments

Comments
 (0)