You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
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:
And this is exclusion range for 1809 version:
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
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](https://user-images.githubusercontent.com/3431598/46443800-b4040c80-c777-11e8-8ef3-fb7ff559921f.png)
And this is exclusion range for 1809 version:
![screenshot_2](https://user-images.githubusercontent.com/3431598/46443801-b4040c80-c777-11e8-9598-7e5b1c67a8de.png)
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.
The text was updated successfully, but these errors were encountered: