Skip to content

Commit 4c54222

Browse files
committed
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.
1 parent 711c52b commit 4c54222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debugAdapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let sessionDetails = utils.readSessionFile();
3232

3333
// Establish connection before setting up the session
3434
debugAdapterLogWriter.write("Connecting to port: " + sessionDetails.debugServicePort + "\r\n");
35-
let debugServiceSocket = net.connect(sessionDetails.debugServicePort);
35+
let debugServiceSocket = net.connect(sessionDetails.debugServicePort, '127.0.0.1');
3636

3737
// Write any errors to the log file
3838
debugServiceSocket.on(

0 commit comments

Comments
 (0)