firefox-devtools / firefox-devtools/vscode-firefox-debug

Catch xhr request with new js files

オープン
#229 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
needs more info
主要言語
TypeScript
スター
447
フォーク
76
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

Currently we're using twig for get some js files for the views. But the debugger isn't catching the new files, and the breakpoints are always in gray.

Firefox dev version: 82.0b9 (64-bit)
Vscode version: 1.50.0

twig request code:
```

{% if javascript|length %}
{% for script in javascript %}

{% endfor %}
{% endif %}

```

launch.json
```json
{
"name": "Listen for Firefox",
"type": "firefox",
"request": "launch",
"reAttach": true,
"profile": "dev-edition-default",
"url": "http://localhost/",
"pathMappings": [
{
"url": "http://localhost/",
"path": "${workspaceFolder}/"
}
],
"skipFiles": [
"${workspaceFolder}/**/*.min.js"
],
"log": {
"fileName": "${workspaceFolder}/logs/firefox-debug-log.txt",
"fileLevel": {
"default": "Debug"
}
}
}
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Twig が生成した script タグと launch.json 構成、特にその pathMappings に関する問題を、Firefox Dev Edition と VS Code を使って再現します。新しく要求された JavaScript ファイルがデバッガーによってどのように検出され、マッピングされるかを追跡します。完了の条件は、それらのファイルのブレークポイントが灰色のままではなくバインドされることです。

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

評価

技術スタック
javascript, vscode
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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