Feature Request: Allow specifying the address when binding to a port
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- devtools, networking
Hướng nghiên cứu
Bắt đầu bằng cách xác định JavaDebugServer và mã thực hiện bind máy chủ gỡ lỗi TCP của nó, sau đó kiểm tra cách các system properties tại thời điểm khởi chạy được xử lý. Hoàn thành nghĩa là máy chủ gỡ lỗi có thể được cấu hình với interface và port được yêu cầu, bao gồm loopback, mà không phá vỡ hành vi khởi động hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When opening a Java debugging session in my local machine, I'd prefer to be able to have the TCP port that the debug server will bind to in the loopback interface instead of in all of them, mostly out of paranoia when I'm working on a shared WiFi.
Also (and maybe less interesting to other folks), at replit.com, we detect TCP ports bound to 0.0.0.0 and treat them magically as web servers, so this should also prevent opening a debug session causing an unintended web server from being "deployed".
So I would like for it to be specify what interface and/or port the JavaDebugServer should bind to. Since the JavaDebugServer is a singleton, it might make sense to configure this through a system property (since sending this configuration in the initialize message may not have the intended effect if the LSP process had already spawned one JavaDebugServer instance). So something like
$ java \
-Declipse.application=org.eclipse.jdt.ls.core.id1 \
-Dosgi.bundles.defaultStartLevel=4 \
-Declipse.product=org.eclipse.jdt.ls.core.product \
-Dcom.microsoft.java.debug.serverAddress=localhost:12345 \ # <- a brand new property
-noverify \
-Xmx256m \
-jar ../jdt/plugins/org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar \
-configuration ../jdt/config_linux \
-data /home/runner/JavaDAP \
--add-modules=ALL-SYSTEM \
--add-opens', 'java.base/java.util=ALL-UNNAMED \
--add-opens', 'java.base/java.lang=ALL-UNNAMED
should do the trick.
- Ngôn ngữ chính
- Java
- Star
- 409
- Fork
- 204
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/java-debug
-
ai-triaged bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/java-debug#611 · 2 bình luận ·
-
ai-triaged enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/java-debug#608 · 3 bình luận ·
-
ai-triaged question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
microsoft/java-debug#597 · 1 bình luận ·
-
ai-triaged bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/java-debug#588 · 1 bình luận ·
-
Is Hamcrest a dependency? Đang mởai-triaged question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
microsoft/java-debug#582 · 1 bình luận ·