Where is the Documentation for VSCode's Debug Adapter and Protocol implementation?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript, vscode
- Lĩnh vực
- developer-experience, documentation, tooling
Hướng nghiên cứu
Bắt đầu với Debugger Extension Guide, DAP specification, VS Code API Reference và VS Code Mock Debug, sau đó kiểm tra các tệp được tham chiếu debugProtocol.ts và loggingDebugSession.ts. So sánh phần mô tả của chúng với release notes của breakpointLocations và phần thảo luận issue được trích dẫn. Được xem là hoàn tất khi bổ sung ngữ cảnh chính thức giải thích mục đích của các capability, hành vi mà người dùng thấy được, cùng các tùy chọn và cơ chế của LoggingDebugSession.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I’ve been trying to work my way through Debugger Extension documentation to improve an existing debugger extension. My resources so far have been:
- Debugger Extension Guide
- Debug Adapter Protocol Overview
- Debug Adapter Protocol Specification
- VS Code API Reference
- VS Code Mock Debug
I would love to add "Documentation for VS Code's DAP Implementation" to that list, but I have unfortunately not been able to find it. The best I've found is using JSDoc-driven IntelliSense on this package, but that has been less helpful than expected.
When attempting to determine how to map DAP Capabilities to the debugger I'm integrating, it helps to have a good understanding of how VS Code is going to use a feature.
One good example would be the supportsBreakpointLocationRequest capability. Here is its JSDoc comment in its entirety:
The debug adapter supports the
breakpointLocationsrequest.
Okay... that sounds like a DAP reference. Let's look at what the specification has to say about BreakpointLocations Requests:
The
breakpointLocationsrequest returns all possible locations for source breakpoints in a given range.
At this point I'm still confused. Looking at the members of the related BreakpointLocationsArguments type provides a bit of insight, but it doesn't definitively help me understand what the purpose of this capability is...
A web search for related keywords finally turns up something helpful:
Finding possible breakpoints in a source range
The new
breakpointLocationsrequest can be used by a DAP client to find all possible breakpoint locations in a given source range. This can be used in the UI in order to improve the discoverability of "inline" ("column") breakpoints.
Ahh! This is how we enable column breakpoints! Got it! That helpful context was provided in VS Code release notes from September 2019...
Would it be possible to add this to some official documentation, whether that be in the DAP Specification or VS Code's specific implementation, or both?
Other examples that I've contended (or am still contending) with:
- The
supportsSetExpressioncapability. I found the necessary context in a previous GitHub Issue. - The
LoggingDebugSessionclass. This is the base class for the VS Code Mock Debug project'sMockDebugSessionclass. That project appears to be how Debug Extension architecture is currently communicated. There is no discussion about what options exist for base classes here and no documentation about whatLoggingDebugSessionprovides beyond its base class (yes logging, but via what mechanism exactly?). The only way to know is to look to the source code and learn it.
In general, I think the documentation for the DAP and VS Code's specific implementation thereof could be greatly enhanced by providing deeper context for features. As someone newly interfacing with the API and familiar with my own debugger's capabilities, it would make my life much easier to understand what end-user experience is enabled by a feature/capability; to understand the "why" behind an API, rather than just the "what".
- 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
- Đọ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/debug-adapter-protocol
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/debug-adapter-protocol#633 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/debug-adapter-protocol#599 · 8 reaction ·
-
under-discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
microsoft/debug-adapter-protocol#596 · 9 bình luận ·
Tất cả issue của microsoft/debug-adapter-protocol
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
gruntwork-io/boilerplate#329 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
freeCodeCamp/curriculum-helpers#607 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
PedestrianDynamics/pyFDS-Evac#326 ·
Maintainer thường phản hồi trong vòng 1 ngày