Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Default Delve port 2345 is in exclusion range in Windows 10 October 2018 Update #1964

Closed
schroding3rscat opened this issue Oct 3, 2018 · 3 comments

Comments

@schroding3rscat
Copy link

Today I noticed that I'm unable to debug any of my Go projects in vscode. I spent quite a time discovering that since the last Windows 10 October 2018 Update Microsoft added a bunch of ports to exclusion range.

This is what I get with 1709 version:
screenshot_1

And this is exclusion range for 1809 version:
screenshot_2

As you can see, they added Delve's default port 2345 to exclusion range. I think you should stop using this port and pick a random one as suggested in #1906 or use a port which is not excluded by Windows.

@ramya-rao-a
Copy link
Contributor

The port 2345 is no longer used after I resolved #1906

Which version of the Go extension are you on?

Are you doing local or remote debugging?

The only place it is used now is in the snippet generated for the remote debugging. In that case, it is a snippet and is meant to be replaced with whatever port is being used on the remote machine.

@schroding3rscat
Copy link
Author

I'm using 0.6.93. The problem is with this snippet. When I hit F5 and vscode generates launch.js for me, I cannot start my project. I get an error with an unclear message that port 2345 is already used. Even if I don't want to remote debug anything, a port is still in the snippet.

@schroding3rscat
Copy link
Author

I checked new launch.js generation and it seems that it doesn't add port there. My script was probably generated in the old version. I think this issue can be closed now.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants