From 4c54222e9dfab7047d2c0c001dc756adc7a29fb5 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 15 Dec 2016 07:13:32 -0800 Subject: [PATCH] Fix #353: Cannot start PowerShell debugger on Windows when offline This issue was caused by not fully specifying the localhost IP address (127.0.0.1) in debugAdapter.ts's socket connection code. --- src/debugAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugAdapter.ts b/src/debugAdapter.ts index 44fe370a06..4b4c48ebbb 100644 --- a/src/debugAdapter.ts +++ b/src/debugAdapter.ts @@ -32,7 +32,7 @@ let sessionDetails = utils.readSessionFile(); // Establish connection before setting up the session debugAdapterLogWriter.write("Connecting to port: " + sessionDetails.debugServicePort + "\r\n"); -let debugServiceSocket = net.connect(sessionDetails.debugServicePort); +let debugServiceSocket = net.connect(sessionDetails.debugServicePort, '127.0.0.1'); // Write any errors to the log file debugServiceSocket.on(