firefox-devtools / firefox-devtools/vscode-firefox-debug
cannot add breakpoint in remote file because of URL encoding
- 主要言語
- TypeScript
- スター
- 447
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When adding a breakpoint for a remote file with a path that contains special characters, Firefox is not recognized to have this file loaded.
This is because the URL for the file the breakpoint is to be set in is URL-encoded, but the URLs of the files loaded by Firefox are not.
As a consequence, the target file's URL is not regarded as equal to itself by [this function](https://github.com/firefox-devtools/vscode-firefox-debug/blob/1bea96d85f02c3fd3361bcd789d258f0df99b92a/src/adapter/util/misc.ts#L10) which leads to it not being found in the list of sources.
コントリビューションガイド
調査の方向性
まず、issue からリンクされている src/adapter/util/misc.ts の URL 比較関数を読み、breakpoint のターゲットが Firefox の読み込み済みソース一覧とどのように照合されるかを追跡します。特殊文字を含むリモートファイルパスでこのケースを再現し、その後、URL エンコーディングの違いがあっても breakpoint が読み込み済みファイルを認識することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 65/100