microsoft / microsoft/vscode-java-debug

cant remote debug on tomcat via attach

Đang mở
#585 14 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

ai-triaged attach question
Ngôn ngữ chính
TypeScript
Star
591
Fork
429
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
19

Mô tả

i'm trying to remote debug my application, which is running on a tomcat.

Environment
  • Operating System: mac OS 10.14.4
  • JDK version: 1.8.0_131
  • Visual Studio Code version: 1.34.0
  • Java extension version: 0.7.1
  • Java Debugger extension version: 0.18.0
Steps To Reproduce

my configuration:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
        "type": "java",
        "name": "Debug (Attach) - Remote",
        "request": "attach",
        "hostName": "localhost",
        "port": 8090
    },
  ]
}

[attach a sample project reproducing the error]
attach logs

Current Result

i'm getting an error message in vscode: Timeout occured while waiting for packet 106

Expected Result

debugger attaches to the remote tomcat just fine

Additional Informations

the same configuration works with intelliJ idea, so it should work in vscode.
idea connects fine with host: localhost, port: 8090
idea shows these params: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8090
do i have to add them somewhere for vscode?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với cấu hình khởi chạy được cung cấp và các hướng dẫn ghi log troubleshooting, sau đó so sánh đường dẫn attach của VS Code với các tham số JDWP mà IntelliJ sử dụng. Hoàn thành khi xác định được lý do mục tiêu Tomcat trên localhost:8090 bị timeout và xác nhận rằng trình gỡ lỗi attach thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, vscode
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.