vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Process Picker broken when JVM binds to random port

Open lemmy opened this issue 3 years ago • 0 comments

When port conflicts occur, a user may choose to let the JVM bind to a random port by omitting the [address attribute] (https://docs.oracle.com/cd/E19501-01/819-3664/abgdm/index.html) or by passing address=0 as command-line arguments. This breaks the process picker because it matches on address, which is either missing or its value is 0:

https://github.com/microsoft/vscode-java-debug/blob/32c57f85d6e4a00842b42a45ee763d87f3883fbb/src/processPicker.ts#L9

A workaround is to let users manually enter the port: https://github.com/tlaplus/CommunityModules/commit/fa56d3fd1bd29dbfc9449a2cf711259ade5abbfc

lemmy avatar Feb 08 '22 17:02 lemmy