Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Clarifying 'loadedSource' events

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

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

Đánh giá

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

Hướng nghiên cứu

Bắt đầu bằng cách đọc các định nghĩa DAP cho supportsLoadedSourcesRequest, loadedSources và loadedSource, sau đó theo dõi chuỗi initialize, launch, configurationDone và loadedSources được mô tả ở đây. So sánh các quy tắc về thứ tự sự kiện với hành vi được mong đợi từ lldb-dap; công việc được hoàn tất khi tài liệu giao thức nêu rõ liệu các sự kiện loadedSource có thể xảy ra trước yêu cầu loadedSources đầu tiên hay không và các client phải đối chiếu chúng như thế nào.

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

Mô tả

I'd like to better understand when I should fire a 'loadedSource' event.

If an adapter has the supportsLoadedSourcesRequest capability set, should I also send the 'loadedSource' event whenever I find a new source or should I delay sending any events until after the first 'loadedSources' request has been made?

At least from my testing I've seen the following DAP messages:

  • initialize <>
  • launch <>
  • setBreakpoint... <>
  • configurationDone <>
  • loadedSources <>

In lldb-dap at least we know some information about the sources for the debuggee around the time of the launch request but I'm not sure if I should send 'loadedSource' events before the first 'loadedSources' request, or if that request will just write over any sources I've already sent.

Ngôn ngữ chính
HTML
Star
1.8k
Fork
173
Merge trung bình
7 ngày 7 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

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.

Issue khác của microsoft/debug-adapter-protocol

Tất cả issue của microsoft/debug-adapter-protocol

Issue tương tự

Thêm issue về Backend & API Design

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.