Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Clarifying 'loadedSource' events

オープン
#588 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
領域
api, devtools

調査の方向性

まず supportsLoadedSourcesRequest、loadedSources、loadedSource の DAP 定義を読み、続いてここで説明されている initialize、launch、configurationDone、loadedSources の順序を追ってください。イベントの順序付け規則を lldb-dap に期待される動作と比較します。loadedSource イベントが最初の loadedSources リクエストに先行してよいかどうか、およびクライアントがそれらをどのように整合させるべきかをプロトコルのドキュメントが明確に記載していれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
HTML
スター
1.8k
フォーク
173
平均マージ
7日 7時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/debug-adapter-protocol のほかの issue

microsoft/debug-adapter-protocol の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。